首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

Asp.net 全局异常处理

2013-03-26 
Asp.net 全局错误处理protected void Application_Error(object sender, EventArgs e){Exception ex thi

Asp.net 全局错误处理

protected void Application_Error(object sender, EventArgs e)        {            Exception ex = this.Server.GetLastError().GetBaseException();            if (ex is ArgumentErrorException)            {                return;            }            LogHelper.CurrentLogger.Error("出现未预计的异常", ex);            this.Response.Redirect("/Error.aspx");        }

热点排行