ScriptLoader.loadScripts cannot be called while the ScriptLoader is already loading scripts

Sys.InvalidOperationException: ScriptLoader.loadScripts cannot be called while the ScriptLoader is already loading scripts.

ScriptResource.axd?d=d3xVu0qZmYMruyPLNxnMUx_rdkJV1pIsv0ccc7NFCXF1fP3E0YMzFBCEbf0LH8zLg4meqbPk0YmkzbD6fxlaaO9yz5K6kiRmO1kEQ0nncc01&t=633775274201214850, 行3191 字符13

---------------

我解决了 将updatePannel先拿掉
就停到错误的那一行了

---------------

在页面中加入如下脚本

<script type="text/javascript" language="javascript">
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    prm.add_initializeRequest(initializeRequest);
    prm.add_endRequest(endRequest);
    var postbackElement;
    function initializeRequest(sender, args) {
        document.body.style.cursor = "wait";
        if (prm.get_isInAsyncPostBack()) {
            args.set_cancel(true);
        }
    }
    function endRequest(sender, args) {
        document.body.style.cursor = "default";
    }
    </script>

---------------

<script type="text/javascript" language="javascript">

var prm = Sys.WebForms.PageRequestManager.getInstance();

prm.add_initializeRequest(initializeRequest);

prm.add_endRequest(endRequest);

var postbackElement;

// checks the PageRequestManager if there is already a postback being processed

// and aborts the postback (question: which postback does it abort?)

// See details here: http://microsoftmiles.blogspot.com/2006/11/maintaining-gridview-scroll-position-in.html

// and http://geekswithblogs.net/rashid/archive/2007/08/08/Asp.net-Ajax-UpdatePanel-Simultaneous-Update---A-Remedy.aspx

function initializeRequest(sender, args) {

document.body.style.cursor = "wait";

if (prm.get_isInAsyncPostBack())

{

//debugger

args.set_cancel(true);

}

}

function endRequest(sender, args) {document.body.style.cursor = "default";

}

</script>

----------------------------

 

http://forums.asp.net/p/1173891/3602931.aspx#3602931

http://blog.csdn.net/xlaws615/archive/2009/04/30/4139294.aspx

posted @ 2010-02-20 14:51  emanlee  阅读(414)  评论(0编辑  收藏  举报