Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using

C#
Response.Write("<script>window.open('WebForm1.aspx')</script>")


But my page is not open it displays popblocked..

So how to avoid this
Posted
Updated 30-Aug-12 20:48pm
v2
Comments
bbirajdar 31-Aug-12 2:48am    
ASP.NET tag added

It is a browser security feature and can be altered only by the user. You cannot change it through code. You need to use other alternative for popup. Use this AJAX PopupControl
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/PopupControl/PopupControl.aspx[^]
 
Share this answer
 
Try this:
C#
RadScriptManager.RegisterClientScriptBlock(base.Page, this.GetType(), "Complete", "window.open('WebForm1.aspx');", true);


--Amt
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900