Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Long running AJAX call graceful abort/error handling

$
0
0

I've been reading a lot of posts and cannot find anything that addresses the issue of long AJAX calls and aborting/handling them.

I'm familar with the timeout values, etc. But I have two issues, here is my object line for the script manager (and I'm using 4.5 web forms so I know it can be just ScriptManager, and maybe tookitmanager is causing issues)

<asp:ToolkitScriptManager ID="SMMasterPage5" ScriptMode="Release" OnAsyncPostBackError="SMMasterPage5_AsyncPostBackError" AsyncPostBackTimeout="600" runat="server" />

The '_AsyncPostBackError' handler isn't working? It never goes into that block. Unless I'm not understanding what is occuring. I've tried to force it by setting to AsyncPostBackTimeout="10" and I just get an AJAX error dialog (but I'm in debug and on my dev machine (maybe this works in release and on server?)).

And the second issue what if I want to stop the call, so that my "Please wait..." doesn't get locked up and spins forever. I would like to gracefully stop the call after x miniutes and return to UI. I have the update panel on a masterpage wrapping the content page.

I'm not using async/await. Straight sync call.

I've searched the web and everything I've found is regarding the timeout setting.

Thanx.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>