<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ajax | KC's Blog</title>
	<atom:link href="https://www.kjctech.net/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kjctech.net</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2023 18:21:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/12/cropped-KC-Logo.png?fit=32%2C32&#038;ssl=1</url>
	<title>ajax | KC's Blog</title>
	<link>https://www.kjctech.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">24634607</site>	<item>
		<title>UpdateProgress control disappeared before the Page gets updated on ASP.net Web App</title>
		<link>https://www.kjctech.net/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net</link>
					<comments>https://www.kjctech.net/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Sat, 23 May 2009 22:16:20 +0000</pubDate>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ASP.net]]></category>
		<guid isPermaLink="false">http://kjctech.net/blog/archive/2009/05/23/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp.net.aspx</guid>

					<description><![CDATA[<p>I have a small web application written in ASP.net 2.0 (works on 3.5 as well) with Ajax enabled. What it does is to search information on a online database and downloads as PDF.Â  I use &#60;asp:UpdatePanel&#62;&#60;/asp:UpdatePanel&#62; to wrap up the web form content, and use &#60;asp:UpdateProgress&#62; to show a modal popup type of progress icon during the actual download. It [&#8230;]</p>
The post <a href="https://www.kjctech.net/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net/">UpdateProgress control disappeared before the Page gets updated on ASP.net Web App</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img data-recalc-dims="1" fetchpriority="high" decoding="async" style="border-right-width: 0px; margin: 0px 0px 10px 10px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="right" src="https://i0.wp.com/www.kjctech.net/images/blog/UpdateProgresscontroldisappearedbeforeth_D210/image.png?resize=320%2C165" width="320" height="165" />I have a small web application written in ASP.net 2.0 (works on 3.5 as well) with Ajax enabled. What it does is to search information on a online database and downloads as PDF.Â  I use &lt;asp:UpdatePanel&gt;&lt;/asp:UpdatePanel&gt; to wrap up the web form content, and use &lt;asp:UpdateProgress&gt; to show a modal popup type of progress icon during the actual download.</p>
<p>It works great except when the PDF is bigger than a few megabyte this nice Ajax type of progress modal disappears without any results returning to the content in the UpdatePanel. I scratched my head many times without any luck finding it why, until I fired up <a href="http://getfirebug.com/" target="_blank" rel="noopener">Firebug</a> in my Firefox and tried again the same process. Bingo. the following error was thrown out in Firebug console.</p>
<blockquote>
<p>Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out</p>
</blockquote>
<p>Searching for <strong>Sys.WebForms.PageRequestManagerTimeoutException </strong>brought me to <a href="http://forums.asp.net/p/1042916/1459117.aspx" target="_blank" rel="noopener">this page on ASP.net forum</a>, in which a poster explained very well what it is and how to solve it.</p>
<blockquote>
<p>For Sys.WebForms.PageRequestManagerTimeoutException, check <a href="http://asp.net/ajax/documentation/live/ClientReference/Sys.WebForms/Exceptions/PageRequestManagerTimeoutException.aspx" target="_blank" rel="noopener">here</a> and <a href="http://asp.net/ajax/documentation/live/tutorials/CustomizingErrorHandlingforUpdatePanel.aspx" target="_blank" rel="noopener">here</a> for what it is.</p>
<p>To solve this problem we can increase the timeout. You can change the timeout time by adding a new property to the script manager control. This property is called AsyncPostBackTimeOut and it can help us to define the number of seconds before the request will throw a request timeout exception*. <b></b></p>
<p>For example if you want that the timeout will take maximum 10 minutes your code should be look like this:</p>
<p>&lt;asp:ScriptManager ID=&#8221;ScriptManager1&#8243; runat=&#8221;server&#8221;</p>
<p>AsyncPostBackTimeOut=&#8221;600&#8243; &gt;</p>
<p>&lt;/asp:ScriptManager&gt;</p>
<p>The default value of the AsyncPostBackTimeOut property is 90 seconds.</p>
</blockquote>
<p>Sure enough, adding the AsyncPostBackTimeout property and setting it to 3600 seconds solved my problem nicely.</p>The post <a href="https://www.kjctech.net/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net/">UpdateProgress control disappeared before the Page gets updated on ASP.net Web App</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">911</post-id>	</item>
	</channel>
</rss>
