Re: Response object

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi there
The renderer usually waits for end of response before sending
it to the client. This relates to the 'response buffer' feature.

You need to disable the response buffer at the beginning of
the page :

Response.Buffer = false;

This will make the server start sending output information to the
client before the end of the page is rendered.

For example try this:

-------------buffer.aspx -------------
Response.BufferOutput = false;
for(int i=0;i<10;i++)
{
Thread.Sleep(500);
Response.Write(i+"<br/>");
Response.Flush();
}
-------------------------------------

This will work on Firefox. There must be some client side
setting in IE which prevents displaying the page before its
content is completely returned...


Antonio


.


Quantcast