开发者

Custom errors: Application_Error vs web.config

开发者 https://www.devze.com 2023-01-12 14:42 出处:网络
What advantage does one technique have over the other: Use Application_Error to handle exceptions or errors.

What advantage does one technique have over the other:

  1. Use Application_Error to handle exceptions or errors.
  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号