Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi All,

I am making tree view from DB values. when i click Child node the page has to open in new window.
i did now. but when opening new window,

this is the code i used ,

SQL
urlcomplaint = "StudentComplaint.aspx?section=" + view.SelectedNode.Parent.Parent.Value + "&sectiontext=" + view.SelectedNode.Text + " &GC= " + view.SelectedNode.Value + "";
                      ScriptManager.RegisterStartupScript(this, typeof(string), "PopupScript", " window.open('" + urlcomplaint + "',null,'width=1000,height=700,toolbar=no,scrollbars=yes,dependent=yes,resizable=yes');", true);



getting "Firefox prevented this site from opening a pop-up window" ..

how to resolve this????
Posted

1 solution

You can't do away with the error. Whether to allow popups or not is user choice that can't be override by code. That is one reason to not use popup.
 
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