I understand that I can redirect a user on an exception by setting the customErrors element in the Web.config
<customErrors mode="On" defaultRedirect="/WebTest/ErrorPages/AppError.html">
</customErrors>
I could also do a Response.Redirect
in the Application_Error
event in the Global.asax file.
What are the differences between these 2 approaches and which one is preferred?