Answer:
Write the code in Application_Error() event handler in the Global.asax file.
Application_Error is fired for all the web pages and can be useful for taking custom actions in response to the unhandled exceptions.
Asked In: Many Interviews |
Alert Moderator