
July 2nd, 2012, 01:19 PM
|
 |
Contributing User
|
|
|
|
|
ASP.Net LinkButton Popup Window
I have the following code tied to a LinkButton. It works fine with IE 8 but doesn't with Chrome.
Would someone enlighten if I'm doing something wrong or if this isn't possible please?
Code:
String csname1 = "PopupScript";
Type cstype = this.GetType();
ClientScriptManager cs = Page.ClientScript;
if (!cs.IsStartupScriptRegistered(cstype, csname1))
{
string js = "myWindow=window.open('','Test','width=500,height=500');" +
"myWindow.document.write(\"Test\");" +
"myWindow.focus();";
cs.RegisterStartupScript(cstype, csname1, js, true);
}
RESOLVED: turn popup blocker off....
Last edited by Vomster : July 2nd, 2012 at 01:23 PM.
|