#1
  1. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    724
    Rep Power
    291

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2011
    Posts
    119
    Rep Power
    0

    Solutions of the problem.


    Hi

    You can solve your problem by doing this.
    Turn popup blocker off.... in chrome.It run first time open turn popup blocker off to on in top of right corner on chrome.

    Thanks
    Diya

IMN logo majestic logo threadwatch logo seochat tools logo