【问题标题】:how to set timeout for progress bar script如何为进度条脚本设置超时
【发布时间】: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


【解决方案1】:

我得到了解决方案。

在 ToolkitScriptManager 或 ScriptManager 中设置超时 AsyncPostBackTimeout="50000"

【讨论】:

    猜你喜欢
    • 2013-07-22
    • 1970-01-01
    • 2014-11-03
    • 2021-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-11
    相关资源
    最近更新 更多