开发者

Custom errors: Application_Error vs web.config

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜