处理Asp.net Ajax框架12029,12007程序
</asp:ScriptManager>
<script language="javascript" type="text/javascript">
Sys.WebForms.PageRequestManager.getInstance()。add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args)
{
if (args.get_error() != undefined)
{
if ((args.get_response()。get_statusCode() == '12007') || (args.get_response()。get_statusCode() == '12029'))
{
document.writeln("服务器连接失败。");
window.onerror = false; //JS中遇到脚本程序时不做任何操作
}
}
}
</script>
【责编:cc】
0
0