<asp:ScriptManager ID="ScriptManager1" runat="servidor">
</asp:ScriptManager>
<script language="javascript" tipo="text/javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
función EndRequestHandler (remitente, argumentos)
{
si (args.get_error()! = indefinido)
{
if ((args.get_response().get_statusCode() == '12007') || (args.get_response().get_statusCode() == '12029'))
{
document.writeln("服务器连接失败。");
ventana.onerror = falso; //JS中遇到脚本错误时不做任何操作
}
}
}
</script>