Ca4nul @ facebook Ca4nul @ Twitter
Forum announcement: $$ Top Contributors Contest (March 2010) - Win Instant extra Cash $$
Welcome Guest Search | Active Topics | Members | Log In | Register

AJAX and window.open dos not work Options
adam
Posted: Wednesday, August 26, 2009 6:36:02 AM
Rank: Advanced Member
Groups: Member

Joined: 4/3/2008
Posts: 142
Points: 432
Location: London
Hi,

I Have Page that uses AJAX Update panel and with in the panel i have button that contans the following



Code:
Response.Write("<script>window.open('default2.aspx',target='new');</script>")


when i click the button exception will happen saying that can not parse from the server.

any one out there that can help me solve this problem..



Thanks
Sponsor
Posted: Wednesday, August 26, 2009 6:36:02 AM
zara
Posted: Wednesday, August 26, 2009 6:38:17 AM
Rank: Advanced Member
Groups: Member

Joined: 5/29/2008
Posts: 47
Points: 141
Location: California
Hi,



hope the follwoing will help without setting up the any client side flags :)

Code:
string
openPopupJS = "openpopup();";

ClientScript.RegisterStartupScript(
this.GetType(), "openPopupJS", openPopupJS, true);




Cheers

Happy coding Bye
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

ASPNET Theme created by Boskone (Dan Ferguson)
Powered by Ca4nul.Com
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.059 seconds.