M
Mantas Miliukas
Hi,
I have problem when flushing the generated HTML code to the client.
It seems that "Page.Response.Flush()" method doesn't work at all.
See my code below:
protected override void Render(HtmlTextWriter writer)
{
for (int i = 0; i < 100; i ++)
{
writer.Write("...");
writer.Flush();
Page.Response.Flush();
System.Threading.Thread.Sleep(1000);
}
}
The "..." are not sent to the client until the whole asp.net page is
generated.
Have any clues, ideas?
Thanks for your help.
I have problem when flushing the generated HTML code to the client.
It seems that "Page.Response.Flush()" method doesn't work at all.
See my code below:
protected override void Render(HtmlTextWriter writer)
{
for (int i = 0; i < 100; i ++)
{
writer.Write("...");
writer.Flush();
Page.Response.Flush();
System.Threading.Thread.Sleep(1000);
}
}
The "..." are not sent to the client until the whole asp.net page is
generated.
Have any clues, ideas?
Thanks for your help.