Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Problems with Response.Flush

Reply
Thread Tools

Problems with Response.Flush

 
 
Frank
Guest
Posts: n/a
 
      01-08-2005
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?

 
Reply With Quote
 
 
 
 
jasonkester
Guest
Posts: n/a
 
      01-09-2005
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/

 
Reply With Quote
 
 
 
 
Frank
Guest
Posts: n/a
 
      01-09-2005
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

 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      01-09-2005
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
===========
"jasonkester" <> wrote in message
news: oups.com...
> 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/
>



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.794 / Virus Database: 538 - Release Date: 10/11/2004


 
Reply With Quote
 
Nilo Cesar Teixeira
Guest
Posts: n/a
 
      07-18-2005
We were having this problem with an user control inside of an .aspx
The solution took time but was simple, we extracted all code that was on the Page_Load event handler of the CONTROL and then put it in the html part of it using good and old <% %> syntax.
It worked for us. Those are our 2 cents.

Nil

From http://www.developmentnow.com/g/8_20...ponse-Flush.ht

Posted via DevelopmentNow.com Group
http://www.developmentnow.com
 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      07-19-2005
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

"Nilo Cesar Teixeira" <> wrote in message
news:52ec0e6c-e92f-4614-8e3d-...
> We were having this problem with an user control inside of an .aspx
> The solution took time but was simple, we extracted all code that was on
> the Page_Load event handler of the CONTROL and then put it in the html
> part of it using good and old <% %> syntax.
> It worked for us. Those are our 2 cents.
>
> Nilo
>
> From
> http://www.developmentnow.com/g/8_20...onse-Flush.htm
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.Redirect after a Response.Flush danielhamd@yahoo.com ASP .Net 5 06-12-2007 05:10 PM
Response.Redirect after Response.Flush Glen Wilkin via DotNetMonster.com ASP .Net 2 04-15-2005 03:29 PM
Response.Flush() Allen Hubatka ASP .Net 1 11-16-2004 06:44 PM
Response.Flush Jason ASP General 2 09-01-2004 05:50 PM
Response.Flush / Response.Redirect Richard N. ASP General 1 10-19-2003 01:06 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57