<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ManagerScript>
<skrip bahasa="javascript" type="teks/javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
fungsi EndRequestHandler(pengirim, argumen)
{
jika (args.get_error() != tidak terdefinisi)
{
if ((args.get_response().get_statusCode() == '12007') || (args.get_response().get_statusCode() == '12029'))
{
document.writeln("服务器连接失败。");
window.onerror = salah; //JS中遇到脚本错误时不做任何操作
}
}
}
</skrip>