Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
clientscript.RegisterClientScriptBlock doesnot work in UpdatePanel
Posted

Try this

ScriptManager.RegisterClientScriptBlock

C#
ScriptManager.RegisterClientScriptBlock(this.up1, this.up1.GetType(), "page", "window.open('UserInfo.aspx?Status=A','_blank','toolbar=no,menubar=no,scrollbars=yes,height=500,width=650,left=200,top=10');", true);


Here up1 is updatepanel ID
 
Share this answer
 
v3
You need to use ScriptManager.RegisterClientScriptBlock when scriptmanager is present in the page.
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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