Response.Flush has no meaning if Response.Buffer is false. If buffer is false, then there is nothing to flush, since it is delivered right away.
See my other response for the reason this does not work.
"Michael Pearson" <mi************************@televox.com> wrote in message news:Ou**************@TK2MSFTNGP09.phx.gbl...
Response.Buffer = true might be overriding your Flush.
Try something like this
Response.Buffer = false
Response.Write("Line1<br>")
Response.Write("Line2<br>")
Response.Flush()
Dim i As Double
Do While i < 1000000000
i += 1
Loop
Response.Write("Line3<br>")
Response.Write("Line4<br>")
Michael
"Luiz Vianna" <lv*****@multconnect.com.br> wrote in message news:eu***************@TK2MSFTNGP10.phx.gbl...
Guys,
I need to send some info to my client while I'm processing some stuff. The flow will be something like :
-process
-response
-process
-response
...
I imagine to use response.flush (as I did on ASP) but it does not work. See my test code, after sending 2 lines on response, I'm simulating a processing time before sending other 2 lines.
Response.Write("Line1<br>")
Response.Write("Line2<br>")
Response.Flush()
Dim i As Double
Do While i < 1000000000
i += 1
Loop
Response.Write("Line3<br>")
Response.Write("Line4<br>")
What hapens is that Line1 and Line2 comes only after processing time..
Ideas?
Thanks
Luiz
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.536 / Virus Database: 331 - Release Date: 11/3/2003