---
title: "How to control, how long an Ajax request may last?"  
description: "How to control, how long an Ajax request may last?"  
author: "Varun Agrawal"  
published: 2011-03-29  
updated: 2020-09-16  
canonical: https://www.mindstick.com/interview/749/how-to-control-how-long-an-ajax-request-may-last  
category: "ajax"  
tags: ["ajax"]  
reading_time: 1 minute  

---

# How to control, how long an Ajax request may last?

Use the ScriptManager's AsyncPostBackTimeout Property. \
For example, if you want to debug a web page but you get an error that the page request has timed out, you may set \
<asp:ScriptManager id="ScriptManager1" runat="server" AsyncPostBackTimeout="8000"/>

## Answers

### Answer by Varun Agrawal

Use the ScriptManager's AsyncPostBackTimeout Property. \
For example, if you want to debug a web page but you get an error that the page request has timed out, you may set \
<asp:ScriptManager id="ScriptManager1" runat="server" AsyncPostBackTimeout="8000"/>


---

Original Source: https://www.mindstick.com/interview/749/how-to-control-how-long-an-ajax-request-may-last

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
