|
-
Jan 25th, 2010, 02:12 AM
#1
Thread Starter
Hyperactive Member
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?
-
Jan 25th, 2010, 02:54 AM
#2
Lively Member
Re: When does WebBrowser1_NavigateError event fire?
 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

Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
-
Jan 25th, 2010, 03:05 AM
#3
Thread Starter
Hyperactive Member
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?
-
Jan 25th, 2010, 03:10 AM
#4
Lively Member
Re: When does WebBrowser1_NavigateError event fire?
 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

Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
-
Jan 25th, 2010, 03:14 AM
#5
Thread Starter
Hyperactive Member
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??
-
Jan 25th, 2010, 03:18 AM
#6
Thread Starter
Hyperactive Member
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?
-
Jan 25th, 2010, 03:44 AM
#7
Lively Member
Re: When does WebBrowser1_NavigateError event fire?
 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

Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
-
Jan 25th, 2010, 03:51 AM
#8
Thread Starter
Hyperactive Member
Re: When does WebBrowser1_NavigateError event fire?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|