ASP.NET

Also checkout my blogs on: PMP | C# | SQL | Personal

 
  Tuesday, January 10, 2006

Error Handling

  • By default, the information shown for a run-time error is the call stack.
  • If debug mode is enabled, ASP.NET displays the line number in source code where the run-time error originated.

<%@ Page Debug="true" % >

<configuration> <system.web> <compilation debug="true"/> </system.web> </configuration>

  • errors are shown to local clients, to remote clients, or to both. By default, errors are only shown to local clients (clients on the same computer as the server). You can also specify a custom error page to redirect clients to if an error occurs.
  • errors can be handling at the page page level, also at application level in Application_Error event in Global.asax. This event will occur for any unhandled exception thrown within the application.











0 Comments:

Post a Comment

<< Home