Let AsyncPostBack updatepanel termination

Recently effect cloudio in the case of the above need to use AJAX

finally decided to implement Microsoft's AJAX Extensions do

really quite easy to use UpdatePanel


In the above case recently cloudio need to use AJAX-effects

Finally we decided to implement Microsoft's AJAX Extensions do

Really quite easy to use UpdatePanel

But in fact cloudio still feel the need to try to reduce to a minimum range UpdatePanel better

The best is to just wrap the small blocks that need partial update

Coupled with Updatepanel of UpdateMode with Updatepanel Triggers set of updated control groups of control

Otherwise, to be honest cloudio encounter many problems because of the flow of asynchronous updates Updatepanel upset the whole process out ...

And Updatepanel on behalf of the greater range to transmit more data back to the server end is not it?

Closer to home that

In addition to general asynchronous AJAX update also has a very important function

It is to allow the user to terminate the current asynchronous request

The user can not point a button to start an asynchronous update

Waiting for 2 to 3 minutes Chung still waiting, but the worst thing is not canceled

Press F5 users can not call it reformed page

This time can be called to deal with what it MicrosoftAjaxLibrary


function AjaxAbort() {
    var ScriptManage = Sys.WebForms.PageRequestManager.getInstance();
    if (ScriptManage.get_isInAsyncPostBack()) {
        ScriptManage.abortPostBack();
    }
}

cloudio wrote a small function so that you can hang on the object you need to call Updatepanel stop update: D

Original: Large columns  make AsyncPostBack updatepanel termination


Guess you like

Origin www.cnblogs.com/chinatrump/p/11512989.html
let