Custom errors: Application_Error vs web.config
What advantage does one technique have over the other:
- Use Application_Error to handle exceptions or errors.
- Use defaultredirect in the web.config开发者_运维百科 file.
Thanks.
There may be other advantages or disadvantages, but the first thought that comes to mind is using Application_Error you are able to trap and log the error.
精彩评论