Error page + application_error sub

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!
 
S

Shanmuga

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top