Re: Passing authentication information from axWebBrowser instance to another



Christian Winter wrote:
> Igor Tandetnik wrote:
>
>>"Christian Winter" <cw@xxxxxxxxxx> wrote in message
>>news:eRx7VzZRFHA.3156@xxxxxxxxxxxxxxxxxxxx
>>
>>
>>>I've made a program (C#) that wraps the axWebBrowser component and
>>>captures BeforeNavigate2 and NewWindow3 events to control
>>>what pages are accessible. If the url is allowed, a new instance
>>>is created and I call
>>>Navigate(string, ref null, ref null, ref null, ref null) to
>>>load the target url. This works fine so far, the only
>>>thing that might annoy users is that they have to authenticate
>>>themselves with every new window.
>>>
>>>Is there a way to pass on auth information from the originating
>>>axWebBrowser instance to the new one? I've searched the msdn
>>>documentation up and down, but maybe I'm just missing the right
>>>keyword. Any hints or pointers will be apreciated.
>>
>>
>>This is how you should create your new instance: KB Article KB815714
>>"HOW TO: Use the WebBrowser Control NewWindow2 Event in Visual C# .NET".
>>The same technique should work for NewWindow3.
>
>
> First, thanks for your quick answer. Although it is not mentioned
> explicitely in this document, the RegisterAsBrowser property seems
> to be responsible whether the session context is passed on to
> the new browser instance or not. Setting it to true made the whole
> thing work like a charm :-)

Seems I was too fast with my reply. It was just an invisible browser
window hanging in the background (thanks, Adobe Reader!) that made
it work. After a fresh sign-on to windows my problem stays the
same.

-Chris
.



Relevant Pages

  • Re: Passing authentication information from axWebBrowser instance to another
    ... >>captures BeforeNavigate2 and NewWindow3 events to control ... >>Navigate(string, ref null, ref null, ref null, ref null) to ... >>documentation up and down, but maybe I'm just missing the right ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Passing authentication information from axWebBrowser instance to another
    ... > captures BeforeNavigate2 and NewWindow3 events to control ... > Navigate(string, ref null, ref null, ref null, ref null) to ... Use the WebBrowser Control NewWindow2 Event in Visual C# .NET". ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: IE Control in Winform (FW1.1)
    ... Navigate before the window is shown (the Load event is fired before the ... this.WebBrowser.Navigate("about:blank", ref flags, ref ... dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, ... HandleRef hMenu, HandleRef hInst, Object pvParam) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: IE Control in Winform (FW1.1)
    ... but I think it has something to do with calling Navigate before the window is shown (the Load event is fired before the window is just shown. ... this.WebBrowser.Navigate("about:blank", ref flags, ref ... dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, ... HandleRef hMenu, HandleRef hInst, Object pvParam) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Anchor tags for local file links cause ie6sp2 window to close
    ... > otherwise I get an error message window titled by Address Bar ... > (presumably because of the #ref) ... If you try to put the file name/path into the address bar and include the ...
    (microsoft.public.windows.inetexplorer.ie6.browser)