July 2nd, 2012, 02:19 PM
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?
RESOLVED: turn popup blocker off....
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');" +
cs.RegisterStartupScript(cstype, csname1, js, true);
Last edited by Vomster : July 2nd, 2012 at 02:23 PM.