<asp:ScriptManager ID="ScriptManager1" runat="서버">
</asp:ScriptManager>
<script 언어="javascript" type="text/javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
함수 EndRequestHandler(발신자, 인수)
{
if (args.get_error() != 정의되지 않음)
{
if ((args.get_response().get_statusCode() == '12007') || (args.get_response().get_statusCode() == '12029'))
{
document.writeln("服务器连接失败。");
window.onerror = 거짓; //JS中遇到脚本错误时不做任何操작
}
}
}
</script>