Redirect in Application_Error redundant if using customErrors?
Posted
by Ek0nomik
on Stack Overflow
See other posts from Stack Overflow
or by Ek0nomik
Published on 2010-06-09T19:40:33Z
Indexed on
2010/06/09
19:42 UTC
Read the original article
Hit count: 224
If I have a customErrors section in my Web.config that says to redirect to Error.html, then putting code in the Application_Error method in the Global.asax to redirect to Error.html is redundant is it not? Technically, I could bypass the Web.config by redirecting to a different page in the Application_Error method if I wanted to, but since I don't want to go to a separate page I don't think I need the code.
© Stack Overflow or respective owner