Help - Search - Members - Calendar
Full Version: ASP.Net
ieXbeta Board > Tech > Developer Center
DangerousDave86
Hey everyone, I could use a little help. I'm making a VB.Net website, and I don't want to write error handling all over the place. I've seen many techniques, but none like how I would want to implement the error handling.

I would like to catch exceptions in the appropriate master pages for each section of the site and then display error messages on the master page - so it stays in keeping with the website. Unfortunately it seems this isn't a way it can be done. Any ideas? Thanks in advance.
President Killer
You could try using the Global.asax file and handle exceptions within the Application_Error event, but still, I strongly recommend you to handle exceptions everywhere it's needed, not just for debugging or to improve the user experience, but also to help prevent security issues.
DangerousDave86
QUOTE(President Killer @ May 1 2007, 04:56) *

You could try using the Global.asax file and handle exceptions within the Application_Error event, but still, I strongly recommend you to handle exceptions everywhere it's needed, not just for debugging or to improve the user experience, but also to help prevent security issues.

On the live site error messages will be restricted so as not to give away information. I think a global.asax handler will probably be implemented if needed.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.