ASP.NET AJAX: Canceling an async postback
Lately I have been working quite a bit with the UpdatePanelAnimationExtender control. I have been using this control along with the animation framework to spice up my ASP.NET GridViews, DetailViews and Wizards by running a simple animation script before and after the control has been updated via an async postback (typically the animation disabled a button, faded out the control, and/or popped up a progress indicator) . This has worked great for the past few months, but recently a new requirement came in from the field requesting for a way to cancel an async operation. Being aware of the abortPostBack method the PageRequestManager, I figured (more like hoped) it would be pretty simple to implement this feature. I added a 'Cancel' button to my progress indicator and wired the onclick handler to invoke the abortPostBack method. Live Demo | View Source Clicking cancel did abort the async postback however, because the OnUpdated animation only runs when the UpdatePanel is updated my indicator was never being hidden and it was appearing as if...