473,385 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problems with Response.Flush

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?

Nov 19 '05 #1
5 3385
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/

Nov 19 '05 #2
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

Nov 19 '05 #3
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" <ja*********@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr 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
Nov 19 '05 #4
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
Nov 19 '05 #5
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" <no****@developmentnow.com> wrote in message
news:52**********************************@msnews.m icrosoft.com...
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

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Copa | last post by:
Hello, I am testing buffering an asp page and Flushing information out to the browser, hence i wrote the code in an asp page that follows this Message Post. The loops are suppose to simulate...
4
by: c | last post by:
I have the following very simple script which works on my desktop (XP-PRO & IIS5.1) but does not work on my laptop with the same config. It also works on other configurations without a problem. I...
7
by: Jon Spivey | last post by:
Experimenting with response.flush() but can't seem to get it to work. This code <% response.write "<p>started</p>" response.flush() for i = 1 to 10000000 i = i +1 next response.write...
9
by: Dominic Godin | last post by:
Hi, I have an asp page that does a lot of processing and reports it's finished by printing the word "Success". For example: <% SomeFunction(SomeVar) SomeFunction(SomeVar1) ...
3
by: Zoury | last post by:
Hi folks ! :O) I'm trying to show a PDF in ASP.NET but I can't get to work properly. here's a portion of my code : '** Dim ms As MemoryStream =...
5
by: Luiz Vianna | last post by:
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...
0
by: jose.mendez22 | last post by:
I'm trying to fire a pop-up window before I execute a lengthy stored procedure so I may utilize this window as a status window on number of records executed. After my response.write statements...
1
by: aceven24 | last post by:
I'm getting some strange behavior when making multiple async calls coming from threads from the thread pool on a WinApp Client. The Event Log has the following events: Event Type: Warning...
12
by: Jim Rodgers | last post by:
I have a big asp file that has an error under certain conditions -- totally repeatable. However, it only fails when I set response.buffer = True at the top. WHen I set it False in order to debug...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.