摘要: ScriptManager属性:  AllowCustomErrorsRedirect  确定异步回发出现错误时是否使用 Web.config 文件的自定义错误部分。  AsyncPostBackErrorMessage  获取或设置异步回发期间发生未处理的服务器异常时发送到客户端的错误消息  public bool IsInAsyncPostBack { get; }  如果在部分呈现模式下执行... 阅读全文
posted @ 2010-06-08 00:24 peipei_t 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 使用 OnAsyncPostBackError="ScriptManager1_AsyncPostBackError" 捕获异常,使用ScriptManager1.AsyncPostBackErrorMessage = e.Exception.Message; 输出异常信息,在前台添加Sys.WebForms.PageRequestManager.getInstance().add_endRequ... 阅读全文
posted @ 2010-06-08 00:17 peipei_t 阅读(330) 评论(0) 推荐(1) 编辑