Re: How do you retrieve a page and not navigate to it?



<StevenGWebster@xxxxxxxxx> wrote in message
news:1127351650.057176.251670@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I've got a user control that loads from a web page. Inside the control
> I get access to the SHDocVw.InternetExplorer object that is rendering
> the page and displaying my control. Depending on a option I need to
> pull another page off of the server. I can't find a method to GET a
> page.

See UrlDownloadToFile, UrlOpenPullStream et al.

> Another option is using WebRequest and GetResponse. The problem here
> is
> that the user has entered UserName & password when the original page
> was requested and I need to maintain those credentials. Is it possible
> to get the credentials from the InternetExplorer object?

No way I know of. But if you pass your IUnknown pointer to one of the
Url* functions I mentioned, they will be picked up. If you are
interested in how this magic happens, see

http://msdn.microsoft.com/workshop/components/com/data_retrieval.asp

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • How do you retrieve a page and not navigate to it?
    ... I've got a user control that loads from a web page. ... I get access to the SHDocVw.InternetExplorer object that is rendering ... to get the credentials from the InternetExplorer object? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • RE: user control - image button only works on second select
    ... So does the test page and usercontrol I sent you works as you expected? ... control, as for the main page and dropdownlist, I don't think there will ... user control - image button only works on second select ... | only working on selecting the button twice. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: UserControl event & method call sequence
    ... a usercontrol on an aspx page, following are the order of events. ... It does not always use this user control ... >>> I have an aspx page that loads an ascx user control. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Context is not a member of....
    ... assuming that the code behind of the user control i.e ... Enter.ascx.vb resides in the App_Code directory, if I add the CodeFile ... If the code behind of the user control Enter.ascx.vb is placed in some ... TextBoxes are named txt1 & txt2. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP, C#.net
    ... I have a user control. ... OnInit method, ... get the gridview to retain its DataSource.. ...
    (microsoft.public.dotnet.languages.csharp)