Define Error Events in Asp.Net?
In ASP.Net when any unhandled exception accurs in application then an event occures,that event called Error event.Two types of Event:
1. Page_Error:When exception occures in a page then this event raised.
2. Application_error:Application_Error event raised when unhandled exceptions in the ASP.NET application and is implemented in global.asax.
The error event have two method:
1. GetLastError: Returns the last exception that occurred on the server.
2. ClearError: This method clear error and thus stop the error to trigger subsequent error event.