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?
Re: When does WebBrowser1_NavigateError event fire?
Quote:
Originally Posted by
Deliriumxx
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
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?
Re: When does WebBrowser1_NavigateError event fire?
Quote:
Originally Posted by
Deliriumxx
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
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??
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?
Re: When does WebBrowser1_NavigateError event fire?
Quote:
Originally Posted by
Deliriumxx
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
Re: When does WebBrowser1_NavigateError event fire?