Why does flush in asp.net appear not to be workig?
<p>I call flush but the page just hangs for 5second (purposely) then renders completely. Why isnt it showing me the first part then the last?</p>

<p>Firefox 7 and chrome both do this</p>

<p>code file</p>

<pre><code>using System;

namespace ABC
{
    public class Test
    {
        static public void Apple()
        {
            System.Web.HttpContext.Current.Response.Flush();
            System.Threading.Thread.Sleep(5000);
        }
    }
}
</code></pre>

<p>page</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
hi
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;
  starting
  &lt;% ABC.Test.Apple(); %&gt;
  &lt;% WebApplication1._Default.RecurseMe(Response, @"/var/www/wordpress", 0); %&gt;

    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
