Click here to Skip to main content
14,732,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
string script = "<script language="\'javascript\'" type="\'text/javascript\'">";
script += "function chartPopup2(" + value + ")";
script += "{";
script += "var oWindow = window.radopen(\'EmpDetailsOverlay.aspx?Empid=\'"+ value + ");";
script += "oWindow.SetSize(750,550);";
script += " oWindow.Center();";
script += "}";
script += "</script>";
//RegisterStartupScript("Startup", script);
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Startup", script, true);

created javascript in Btnclick event(codebehind .aspx.cs file)
i clicked the button but is not working

[edit]Reworked code block to restore readability - OriginalGriff[/edit]
Updated 27-Jul-10 22:02pm

1 solution

Well, you created the Javascript server side, ok. Did you bind the method with the button?

Check for button binding. Update question if you find it still not working.

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