摘要:
Global.aspx.cspublicstaticvoidRegisterGlobalFilters(GlobalFilterCollectionfilters){filters.Add(newCustomHandlerErrorAttribute());}CustomHandlerErrorAttribute.cspublicclassCustomHandlerErrorAttribute:HandleErrorAttribute{publicoverridevoidOnException(ExceptionContextfilterContext){if(filterContext.Ex 阅读全文