【发布时间】:2015-12-17 06:24:15
【问题描述】:
<script type="text/javascript">
var prm = Sys.WebForms.PageRequestManager.getInstance();
//Raised before processing of an asynchronous postback starts and the postback request is sent to the server.
prm.add_beginRequest(BeginRequestHandler);
// Raised after an asynchronous postback is finished and control has been returned to the browser.
prm.add_endRequest(EndRequestHandler);
function BeginRequestHandler(sender, args) {
//Shows the modal popup - the update progress
var popup = $find('<%= modalPopup.ClientID %>');
if (popup != null) {
popup.show();
}
}
function EndRequestHandler(sender, args) {
//Hide the modal popup - the update progress
var popup = $find('<%= modalPopup.ClientID %>');
if (popup != null) {
popup.hide();
}
}
</script>
【问题讨论】:
-
请解释一下究竟是什么不工作或你需要帮助的代码行中的确切位置。
-
我收到错误 0x800a139e - JavaScript 运行时错误:Sys.WebForms.PageRequestManagerTimeoutException:服务器请求定时和进度条停止工作,但进程仍在继续@Mr_Green
-
谢谢我的解决方案设置超时 AsyncPostBackTimeout="50000"
标签: javascript jquery asp.net progress-bar webpage