Re: How can I know when the URL I specified to Navigate method get loaded?



"yuzhu.shen" <yuzhu.shen@xxxxxxxxx> wrote in message
news:0dd585eb-872f-4d86-b690-dbd21e499cef@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
I want to know how to associate a NavigateComplete2 event (or
something like that) with the original request. Put it in other words,
I use Navigate() to ask the control to navigate to some URL, and I
want to know if it is get loaded (if yes, when it is get loaded).

Watch BeforeNavigate2 event. NavigateComplete2 would correspond to the
latest BeforeNavigate2.

Right after you call Navigate, you would get BeforeNavigate2 event
indicating that the navigation has started. If you get NavigateComplete2
without any intervening BeforeNavigate2, then it's for your request. If
you get another BeforeNavigate2 instead, it means some other navigation
has started (e.g. by user clicking on a link) and your request is
abandoned.

You may also want to watch NavigateError event, in case your request
fails for some reason without ever reaching NavigateComplete2 state.
--
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

  • A newbies cry for help editing XML document
    ... Using VB.NET, VS2003, XML. ... I apologize for the length of this request. ... I build a reference to the book node, I get stuck on how to navigate through ... I've read every articles I can find on xml, xpath, doc, navigator, etc. ...
    (microsoft.public.dotnet.xml)
  • Re: How to prevent direct browsing to a .asmx page?
    ... You could check the referrer using Request.UrlReferrer... ... the page the user was looking at previous to the current request. ... You could also use a cookie... ... I want users to be able to navigate to the welcome.aspx page (e.g. ...
    (microsoft.public.dotnet.framework.aspnet)
  • IE makes extra request to a sites default page
    ... separate request to the site's home page. ... Example: if I explicitly navigate ... definitely making a request. ... This is causing problems for us because one of ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Page Load event is called....
    ... > is any server side event happens, ... > also happening when I navigate to the next page. ... etc. Think of it as a Page object receives a request. ... you are telling the browser in the current ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HttpWebRequest & HttpWebResponse Cookies
    ... > to a string, and then write that string into the headers of subsequent ... By subsequent request, I mean creation of new HttpWebRequest. ... > still haven't figured out if you can navigate with one request. ...
    (microsoft.public.dotnet.languages.vb)