Traping Exception In ASP.NET
From: webLogs.asp.net
We can trap error in ASP.NET in hierarchical way:
1. By using Try Catch in local routines.
2. By using Page_Error event
3. By using Global.asax error events
4. By redirecting control to specific pages depending on each specific error(like HTTP 400 and 500 specific errors) in Web.config file.