Error page + application_error sub

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

Every time an error occures no mater what the error is i want to show the
company site with a body that says "An error has occured, please try again
later" and i want to use my existing code in the applicaiton_error even sub
in the global.asax file to email the admins the error... how would i get a
custom error page to show with that text every time an error occures instead
of the asp.net error page that you get by default? thanks!
 
Go to Web.Config file and set the customErrors tag's
defaultRedirect property to the page where you want to be
redirected!
 
Back
Top