none
Manage Popup in webApplication Adapter RRS feed

  • Question

  •  

    Hi,

    i've a problem to open window popup from webapplication adapter, using the object SHDocVw.InternetExplorer.

    I'm using this code:

     

    void Browser_NewWindow(object sender, System.ComponentModel.CancelEventArgs e)

    {

    e.Cancel = true;

    }

     

    public override bool OnNewWindow(string newURL, string fromURL, long flags)

    {

    SHDocVw.InternetExplorer browserIe = null;

    browserIe = new InternetExplorer();

    browserIe.Visible = true;

    browserIe.Width = 1024;

    browserIe.Height = 768;

    browserIe.ToolBar = 0;

    browserIe.StatusBar = false;

    browserIe.MenuBar = false;

    browserIe.AddressBar = false;

     

    object o = null;

     

    InternetSetCookie(NewUrlNavigate, null, oldCookie);

    browserIe.Navigate(NewUrlNavigate, ref o, ref o, ref o, ref o);

     

    return base.OnNewWindow(newURL, fromURL, flags);

    }

     

    When i try to navigate the new url in the same browser instance all is ok, but when i try to navigate in new window this open a new instance of Internet Explorer, but lose cookie
    Wednesday, December 17, 2008 4:06 PM