Frequently Asked Interview Questions

What are the different approaches to handle exceptions in asp.net web application?

  1. Use exception-handling structures to deal with exceptions within the scope of a procedure.
    try { -- }
    catch { -- }
    finally { -- }
  2. Use error events to deal with exceptions within the scope of an object.
    Page_Error - The Page_Error event handler provides a way to trap errors that occur at the page level.
    Application_Error - Application_Error event handler to trap errors that occur at the application level.
  3. Custom error pages to display custom error pages for unhandled exceptions at application level.

Most Visited Pages

Home | Site Index | Contact Us