Brothernod
asked on
.net 2.0 webbrowser, all frames loaded?
Is there a reliable way to check if all frames have loaded on a webpage in the webbrowser control with .net 2.0 ?
I currently use the DocumentCompleted event, but I find that framed pages will hit the document completed event multiple times when loading a given page.
I've resorted to for loop since I can figure out the frame count for each page, but this is really sloppy and will be a nightmare to maintain.
Thanks in advance.
I currently use the DocumentCompleted event, but I find that framed pages will hit the document completed event multiple times when loading a given page.
I've resorted to for loop since I can figure out the frame count for each page, but this is really sloppy and will be a nightmare to maintain.
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you found something that tells you that you have an error loading the page?
ASKER
An error as in the page didn't finish loading or an error as in "The password must be 6 to 12 characters" from a poorly filled in form?
mostly the first case.
If it is a poorly filled form, the document will load completely.
If it is a poorly filled form, the document will load completely.
ASKER
Sorry, I haven't experienced problems with a page loading.
I had a page throw the ... it threw some sort of error, and I just disabled the debugger that caught it since there was nothing I could do to bypass it and the page functioned properly.
Would timing the navigate function be a solution and if it doesn't connect after 5 seconds handle a no connection error? I assume there is a better way though. Open a question and see what people post.
I had a page throw the ... it threw some sort of error, and I just disabled the debugger that caught it since there was nothing I could do to bypass it and the page functioned properly.
Would timing the navigate function be a solution and if it doesn't connect after 5 seconds handle a no connection error? I assume there is a better way though. Open a question and see what people post.
no objections
ASKER
Is it possible to keep the solution for when people search for the question?
Ok ReadyState is reporting complete for digg.com although it is NOT finished loading the page. So that doesn't work for me.