Viewing error information in ASP.net Pages
Asp.net provides tww configuration settings in the web.config file.
Custom error mode: when this is enabled ASP.NET's detailed error message are hidden from view.
It has three possible values:
OFF,ON,RemotOnly
Debug Mode: Enbaling this mode provides you with more intuitive error information
You can enbale custom errors with in the web.config file's configuration section group as follows
Debug mode
It can also be used to redirect us to a different page when we have an error