Thursday, December 15, 2011

ASP.NET AJAX - Update Panel Timeout


ASP.NET AJAX - Update Panel Timeout

When using the asp:UpdatePanel server control for asyncronous communication with the web server the default timeout is 90 seconds. For some processes this may not be long enough.

It turns out that this is a page-level setting. The asp:ScriptManager server control has a property named AsyncPostBackTimeout. Set this value to the number of seconds you need to resonably run the process in question and you'll be fine.

<asp:scriptmanager id="scriptManager1" runat="server" enablepartialrendering="true" asyncpostbacktimeout="1000"></asp:ScriptManager>

AsyncPostBackTimeout = time in seconds 

--
Shahzad Afzal
http://www.pakistanprobe.com/



No comments:

Popular Posts