代码级
使用try,catch,finally程序块

应用级
Application_Error定义异常处理
在Web.Config中定义CustomError


项目级
使用EnterpriseLibrary中的异常处理块

相关文章: