Default Page

Click this button to create an InvalidOperationException.
Page_Error will catch this and redirect to GenericErrorPage.aspx.

Click this button to create an ArgumentOutOfRangeException.
Page_Error will catch this and handle the error.

Click this button to create a generic Exception.
Application_Error will catch this and handle the error.

Click this button to create an HTTP 404 (not found) error.
Application_Error will catch this and redirect to HttpErrorPage.aspx.

Click this button to create an HTTP 404 (not found) error.
Application_Error will catch this but will not take any action on it, and ASP.NET will redirect to Http404ErrorPage.aspx. The original exception object will not be available.

Click this button to create an HTTP 400 (invalid url) error.
Application_Error will catch this but will not take any action on it, and ASP.NET will redirect to DefaultRedirectErrorPage.aspx. The original exception object will not be available.