Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the

时间:2014-05-06 23:36:38   收藏:0   阅读:408
    Sys.Application.add_load(function() {
        var form = Sys.WebForms.PageRequestManager.getInstance()._form;
        form._initialAction = form.action = window.location.href;
    });
    if (!document.all) {
        window.onbeforeunload = function() {
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequest);
        }
    }

    function endRequest(sender, e) {
        err = e.get_error();
        if (err) {
            if (err.name == "Sys.WebForms.PageRequestManagerServerErrorException") {
                e.set_errorHandled(true);
            }
        }
    }

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!