<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Easy incremental status updates for long requests</title>
	<atom:link href="http://encosia.com/easy-incremental-status-updates-for-long-requests/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Thu, 02 Feb 2012 19:50:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Brian</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-61762</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Mon, 16 Jan 2012 01:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-61762</guid>
		<description>I echo some of the earlier comments - I tried all kinds of ideas from other sites with no luck, and then hit this site, and what a great idea - simple, easy to understand, works like a charm.  Great information here.</description>
		<content:encoded><![CDATA[<p>I echo some of the earlier comments &#8211; I tried all kinds of ideas from other sites with no luck, and then hit this site, and what a great idea &#8211; simple, easy to understand, works like a charm.  Great information here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: squiel</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-47463</link>
		<dc:creator>squiel</dc:creator>
		<pubDate>Thu, 17 Nov 2011 18:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-47463</guid>
		<description>Thanks!!!</description>
		<content:encoded><![CDATA[<p>Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linh</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-46863</link>
		<dc:creator>Linh</dc:creator>
		<pubDate>Mon, 24 Oct 2011 13:56:02 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-46863</guid>
		<description>When used your code in Chrome browser, when click button, forever spinning appear in tab browser, how to stop it ?</description>
		<content:encoded><![CDATA[<p>When used your code in Chrome browser, when click button, forever spinning appear in tab browser, how to stop it ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: corey</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-45892</link>
		<dc:creator>corey</dc:creator>
		<pubDate>Wed, 14 Sep 2011 23:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-45892</guid>
		<description>this is awesome! thank you so much! cheers from detroit.</description>
		<content:encoded><![CDATA[<p>this is awesome! thank you so much! cheers from detroit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David T</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-44738</link>
		<dc:creator>David T</dc:creator>
		<pubDate>Tue, 16 Aug 2011 19:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-44738</guid>
		<description>Merbac - Did you figure out what was going on with your local IIS on Windows 7? BTW, make sure you don&#039;t have Fiddler running while you test as this will cause the symptoms you described.</description>
		<content:encoded><![CDATA[<p>Merbac &#8211; Did you figure out what was going on with your local IIS on Windows 7? BTW, make sure you don&#8217;t have Fiddler running while you test as this will cause the symptoms you described.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mercbac</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-43692</link>
		<dc:creator>Mercbac</dc:creator>
		<pubDate>Fri, 17 Jun 2011 17:08:52 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-43692</guid>
		<description>I increased it as high as 600K, but no change.  To make it even weirder is that it updates fine if I run it in Visual Studio 2010 development server. And what I set up in IIS is just pure defaults. It shouldn&#039;t have anything to do with my web.config either as it runs fine on my hosting provider&#039;s IIS...
So I built the solution into my site, testing it on VS2010&#039;s server, but I&#039;m still curious to know why my IIS doesn&#039;t want to co-operate.</description>
		<content:encoded><![CDATA[<p>I increased it as high as 600K, but no change.  To make it even weirder is that it updates fine if I run it in Visual Studio 2010 development server. And what I set up in IIS is just pure defaults. It shouldn&#8217;t have anything to do with my web.config either as it runs fine on my hosting provider&#8217;s IIS&#8230;<br />
So I built the solution into my site, testing it on VS2010&#8242;s server, but I&#8217;m still curious to know why my IIS doesn&#8217;t want to co-operate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-43691</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Fri, 17 Jun 2011 17:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-43691</guid>
		<description>You might try increasing the size of the initial 256 byte &lt;code&gt;Response.Write&lt;/code&gt; padding.  Try increasing it to a huge value like 32,768 to see if that defeats whatever buffering you&#039;re running into, and then lower it from there to determine what the actual value is (I&#039;d be interested in what you find out).</description>
		<content:encoded><![CDATA[<p>You might try increasing the size of the initial 256 byte <code>Response.Write</code> padding.  Try increasing it to a huge value like 32,768 to see if that defeats whatever buffering you&#8217;re running into, and then lower it from there to determine what the actual value is (I&#8217;d be interested in what you find out).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mercbac</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-43674</link>
		<dc:creator>Mercbac</dc:creator>
		<pubDate>Thu, 16 Jun 2011 09:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-43674</guid>
		<description>This is a great solution, however when I run this on my Win7 SP1 system with IIS, then no updates are displayed from the LongRunningProcess&#039;s Page_Load function until that function ends. Only then are all updates rendered at once.
When I deploy the same thing to my web hosting provider (they also run IIS7) it works just fine. All this regardless of which browser I use, so I do believe there is some IIS setting on my system that&#039;s different from the hosting provider but I just can&#039;t find what that would be.
Any suggestions would be much appreciated.</description>
		<content:encoded><![CDATA[<p>This is a great solution, however when I run this on my Win7 SP1 system with IIS, then no updates are displayed from the LongRunningProcess&#8217;s Page_Load function until that function ends. Only then are all updates rendered at once.<br />
When I deploy the same thing to my web hosting provider (they also run IIS7) it works just fine. All this regardless of which browser I use, so I do believe there is some IIS setting on my system that&#8217;s different from the hosting provider but I just can&#8217;t find what that would be.<br />
Any suggestions would be much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soren</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-43378</link>
		<dc:creator>Soren</dc:creator>
		<pubDate>Wed, 18 May 2011 14:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-43378</guid>
		<description>Hep Dave,

Great code - it&#039;s working great - on one of my two loadbalanced servers.

On the first, primary, server the output is first served when the executing method is all done.

On the second if updates fine one line at a time 

Have you, or anyone else seen this before ?</description>
		<content:encoded><![CDATA[<p>Hep Dave,</p>
<p>Great code &#8211; it&#8217;s working great &#8211; on one of my two loadbalanced servers.</p>
<p>On the first, primary, server the output is first served when the executing method is all done.</p>
<p>On the second if updates fine one line at a time </p>
<p>Have you, or anyone else seen this before ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 缓冲输出 &#124; IT技术问答论坛</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-41747</link>
		<dc:creator>缓冲输出 &#124; IT技术问答论坛</dc:creator>
		<pubDate>Tue, 18 Jan 2011 17:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-41747</guid>
		<description>[...] 基本上，我一直在寻找一种方式做一个长期的过程，从不断更新的网页。我还以为是AJAX的路要走，但戴夫一个不错的一篇关于使用Javascript 。本人我的应用程序集成到它的伟大和它的工作对我的客户，但不是我的服务器WebHost4Life。我还有一个服务器@ Brinkster，并决定尝试在那里和它的工作。所有的代码是对我的客户，WebHost4Life和Brinkster相同，因此有明显的东西要和WebHost4Life上。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 基本上，我一直在寻找一种方式做一个长期的过程，从不断更新的网页。我还以为是AJAX的路要走，但戴夫一个不错的一篇关于使用Javascript 。本人我的应用程序集成到它的伟大和它的工作对我的客户，但不是我的服务器WebHost4Life。我还有一个服务器@ Brinkster，并决定尝试在那里和它的工作。所有的代码是对我的客户，WebHost4Life和Brinkster相同，因此有明显的东西要和WebHost4Life上。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-41710</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Fri, 14 Jan 2011 04:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-41710</guid>
		<description>I believe the Response.Flush() calls have the same end result as disabling response buffering on that page.  The 256 byte buffering was only happening in IE though, not Firefox or Safari, so I ruled out any server-side fixes.</description>
		<content:encoded><![CDATA[<p>I believe the Response.Flush() calls have the same end result as disabling response buffering on that page.  The 256 byte buffering was only happening in IE though, not Firefox or Safari, so I ruled out any server-side fixes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shiroy</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-41709</link>
		<dc:creator>Shiroy</dc:creator>
		<pubDate>Fri, 14 Jan 2011 03:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-41709</guid>
		<description>Dave,

Have you thought of using Response.Buffer = false (in ASP.net)

The prevent asp.net from Buffering the page.

However, if it&#039;s IE that&#039;s doing the buffering, then I guess we&#039;re outta luck there!

~Shiroy</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>Have you thought of using Response.Buffer = false (in ASP.net)</p>
<p>The prevent asp.net from Buffering the page.</p>
<p>However, if it&#8217;s IE that&#8217;s doing the buffering, then I guess we&#8217;re outta luck there!</p>
<p>~Shiroy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-41675</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 10 Jan 2011 15:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-41675</guid>
		<description>As far as I can tell, the Escape key (or stop button) stops the browser postback, but any server-side code executing in your LongRunningProcess.aspx.vb keeps running without any feedback to the user.

My only concern is if a user initiates this long-running process which does a bunch of DB work (clearing out existing records, importing data from another server, etc.) that can take up to 30 minutes to complete, is there a way to &quot;Cancel&quot; the server-side code?  If the user starts the 30-minute process and realizes that they made a mistake on one of the input parameters, pressing Esc makes it look like they&#039;ve cancelled it but in reality, records are still being written to the DB.  If they then start the process again with different input, the DB will probably end up in an inconsistent state.  Any ideas?</description>
		<content:encoded><![CDATA[<p>As far as I can tell, the Escape key (or stop button) stops the browser postback, but any server-side code executing in your LongRunningProcess.aspx.vb keeps running without any feedback to the user.</p>
<p>My only concern is if a user initiates this long-running process which does a bunch of DB work (clearing out existing records, importing data from another server, etc.) that can take up to 30 minutes to complete, is there a way to &#8220;Cancel&#8221; the server-side code?  If the user starts the 30-minute process and realizes that they made a mistake on one of the input parameters, pressing Esc makes it look like they&#8217;ve cancelled it but in reality, records are still being written to the DB.  If they then start the process again with different input, the DB will probably end up in an inconsistent state.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Usman</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-39975</link>
		<dc:creator>Usman</dc:creator>
		<pubDate>Wed, 29 Sep 2010 01:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-39975</guid>
		<description>this isnt working for me, if i deployes this on a remote server and try to execute it.

it goes all the way to 100%</description>
		<content:encoded><![CDATA[<p>this isnt working for me, if i deployes this on a remote server and try to execute it.</p>
<p>it goes all the way to 100%</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul J. Weighell</title>
		<link>http://encosia.com/easy-incremental-status-updates-for-long-requests/#comment-38752</link>
		<dc:creator>Paul J. Weighell</dc:creator>
		<pubDate>Thu, 06 May 2010 02:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/10/03/easy-incremental-status-updates-for-long-requests/#comment-38752</guid>
		<description>Great!

Found this after a looooooong search and loads of discarded complex methods.

Works a treat with vb, aspx, web developer 2008 and even master pages.

Remember to set AutoEventWireup=&quot;true&quot; in your LongRunningProcess.aspx

vb example:

Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        Response.Write(Space(256))
        Response.Flush()
        For N = 0 To 10
            System.Threading.Thread.Sleep(1000)
            UpdateProgress(N, &quot;some message&quot;)
        Next
    End Sub

Sub UpdateProgress(ByVal PercentComplete As Integer, ByVal Message As String)
        Response.Write(&quot;parent.UpdateProgress(&quot; &amp; PercentComplete &amp; &quot;, &#039;&quot; &amp; Message &amp; &quot;&#039;);&quot;)
        Response.Flush()
End Sub

Many thanks Mr Ward.</description>
		<content:encoded><![CDATA[<p>Great!</p>
<p>Found this after a looooooong search and loads of discarded complex methods.</p>
<p>Works a treat with vb, aspx, web developer 2008 and even master pages.</p>
<p>Remember to set AutoEventWireup=&#8221;true&#8221; in your LongRunningProcess.aspx</p>
<p>vb example:</p>
<p>Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)<br />
        Response.Write(Space(256))<br />
        Response.Flush()<br />
        For N = 0 To 10<br />
            System.Threading.Thread.Sleep(1000)<br />
            UpdateProgress(N, &#8220;some message&#8221;)<br />
        Next<br />
    End Sub</p>
<p>Sub UpdateProgress(ByVal PercentComplete As Integer, ByVal Message As String)<br />
        Response.Write(&#8220;parent.UpdateProgress(&#8221; &amp; PercentComplete &amp; &#8220;, &#8216;&#8221; &amp; Message &amp; &#8220;&#8216;);&#8221;)<br />
        Response.Flush()<br />
End Sub</p>
<p>Many thanks Mr Ward.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

