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