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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top