Ajay Saini

Ajay Saini

  • 1.4k
  • 183
  • 23k

ASP.Net - Wait until all Page Methods are not completed.

Jul 30 2015 7:20 AM

I have an ASP.NET application and have one page in which all the server side processing are using Page Methods (Script Manager is available on page). Now the issue is that there are multiple asynchronously processed on server some are taking 1~20 seconds but one of them takes 30 minutes approx. Some are executed on success of other one. Session timeout (20 min) and execution timeout (60 min) and working as expecting.

I have also a java-script function who checks the idle time on user and if user not taken any action until 20 min then a warning message appears and user will automatically logged out even one asynchronous request is still running behind.

Is there any way to check if any asynchronous request is still running? If yes then i will check on my java-script code who checks the idle time.