954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

WebBrowser Element

Hi I am doing some coding with the WebBrowser element and was wondering if there was a way to create custom error pages i.e. if something goes wrong it navigates to this page instead of the default IE8 one. I did a quick google but got nowhere.

If anyone has any experience with this it would be fantastic. Cheers, I appreciate all contributions as always :)

djjavo
Light Poster
28 posts since Jun 2011
Reputation Points: 10
Solved Threads: 1
 

You control this kind of thing in the web.config file. Locate the customErrors section and there is the ability to add the location of your custom page and specify what error it shows for (404, general exceptions, etc).
Google .net customerrors and you should find something. OK, I just did it for you:
http://msdn.microsoft.com/en-us/library/h0hfz6fc(v=vs.71).aspx

hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 167
 

Thanks for your reply, sorry to be a pain but I do not understand this code as I do not know ASP.net only VB.net

djjavo
Light Poster
28 posts since Jun 2011
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: