Problems with Response.Flush

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Hello all. On our site's pages, I have a waiting animation whom's HTML
is Response.Write'd out and then flushed in our Page_Load. On some of
our servers, the waiting page works fine. On others, the response.flush
doesn't work til the page is completely done loading, which completely
voids the point of being there in the first place. Any ideas? I tried
playing around with Response.Buffer; temporarily turning it off when
I'm writing out the loading HTML then turning it back on; nada. Any
ideas?
 
Don't forget, you can still use classic ASP in ASP.NET. This will give
you much more predictable results for an interstitial page:

<img src="loading.gif">
</html>
<% Response.Flush(); %>

<% DoMyHeavyLifting(); %>
Jason
Expat Software Consulting Services
http://www.expatsoftware.com/
 
No you misunderstand. The example code you gave is EXACTLY what I did.
After flush was called it did nothing (in other words; it didn't flush
immediately). It just waited til the end of the page's processing to
send the output to the browser. I'm not using an interstitial page;
it's the same page.
Thanks for trying though, it is appreciated.

- Frank
 
re:
Don't forget, you can still use classic ASP in ASP.NET.

To be precise, you can use ASP *along with* ASP.NET,
but not *in* ASP.NET.

ASP and ASP.NET are handled by different ISAPI applications.



Juan T. Llibre
ASP.NET MVP
===========
 
If you have to use more than one handful of toilet paper, it's always best
to flush twice.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top