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 :)

Recommended Answers

All 2 Replies

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.