Click here to Skip to main content
15,912,977 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I am open Windows pop from master page its not working but if i using this code aspx page its working properly,please help me what i missing

string authorizationUrl="www.someurl.com";

ClientScript.RegisterStartupScript("openwin", "<script type='text/javascript'>window.open('" + authorizationUrl + "','mywindow', 'left=200,top=50,menubar=0,resizable=0,location=1,toolbar=0,status=1,scrollbars=0,width=800,height=600');</script>");
Posted

ScriptManager.RegisterStartupScript(this.Page, GetType(), this.ID, "<script

language='javascript'> Open('PageName.aspx');" + "</script>", false);

Make Sure In ur Master Page u having this <asp:toolkitscriptmanager id="ToolkitScriptManager1" runat="server" />
 
Share this answer
 
v3
You probably already register openwin.
 
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