Results 1 to 8 of 8

Thread: When does WebBrowser1_NavigateError event fire?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    355

    When does WebBrowser1_NavigateError event fire?

    I am about to use WebBrowser1_NavigateError event to trap browser error messages. I am little confused as to when the event fires,, before or after document complete?

  2. #2
    Lively Member agent_007's Avatar
    Join Date
    Jan 2010
    Posts
    93

    Re: When does WebBrowser1_NavigateError event fire?

    Quote Originally Posted by Deliriumxx View Post
    I am about to use WebBrowser1_NavigateError event to trap browser error messages. I am little confused as to when the event fires,, before or after document complete?
    it fires before the document completes

    Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    355

    Re: When does WebBrowser1_NavigateError event fire?

    Thanks,,,

    I do have another related question though...

    I understand that once the event fires I get a StatusCode and I know how to trap it,,, that is not a problem,,,

    BUT,, is there a default StatusCode value that I could use to validate that there was NO error?

    I mean,, if the event doesn't fire, the StatusCode is what? Or what is the StatusCode BETWEEN error events when the navigation is successful?

  4. #4
    Lively Member agent_007's Avatar
    Join Date
    Jan 2010
    Posts
    93

    Re: When does WebBrowser1_NavigateError event fire?

    Quote Originally Posted by Deliriumxx View Post
    Thanks,,,

    I do have another related question though...

    I understand that once the event fires I get a StatusCode and I know how to trap it,,, that is not a problem,,,

    BUT,, is there a default StatusCode value that I could use to validate that there was NO error?

    I mean,, if the event doesn't fire, the StatusCode is what? Or what is the StatusCode BETWEEN error events when the navigation is successful?

    here is the list of all status codes

    http://msdn.microsoft.com/en-us/libr...33(VS.85).aspx

    Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    355

    Re: When does WebBrowser1_NavigateError event fire?

    I have the same URL with the ERROR status codes,, that is not what I am asking though. I would like to know if there is a "StatusCode" value that represents successful navigation??

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    355

    Re: When does WebBrowser1_NavigateError event fire?

    OR even better.. as far as I understand the success status code of the browser is 200 BUT this code does not fire as part of NavigateError event because it is not an error. When does 200 fire or how could i capture it?

  7. #7
    Lively Member agent_007's Avatar
    Join Date
    Jan 2010
    Posts
    93

    Re: When does WebBrowser1_NavigateError event fire?

    Quote Originally Posted by Deliriumxx View Post
    OR even better.. as far as I understand the success status code of the browser is 200 BUT this code does not fire as part of NavigateError event because it is not an error. When does 200 fire or how could i capture it?
    there is no way to capture statuscode other than error status codes in web control as far i know if others may be knowing then do reply

    Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    355

    Re: When does WebBrowser1_NavigateError event fire?

    Thanks 007..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width