How to control the duration of an Ajax request?

How to control the duration of an Ajax request?

The default duration of an Ajax request is 90 seconds. However, it is possible to change the duration of the request. In order to control the duration of an Ajax request, one can use AsyncPostBackTimeout. AsyncPostBackTimeout is a property of the ScriptManagercontrol, one that allows one to change the duration of an Ajax request.

Example:

<asp:ScriptManager runat=”server” id=”sample” AsyncPostBackTimeout=”40”/>

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.