Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

response.flush

Status
Not open for further replies.

mellenburg

Programmer
Aug 27, 2001
77
US
I'm running an ASP program that takes about 20 minutes to run. Periodically, I have information written to the screen to let the user see the job's progress. I'm using response.flush statements to write the data while the script is still running. When the browser gets to one full screen, it stops writing. In other words, it won't write any line that would make the scroll bar necessary. The job still runs, but I'd like it to keep displying its progress. Is there an option that would make the browser keep displaying information. I have the following two options at the beginning of the program.

session timeout=5000
Server.ScriptTimeout=12000

 
i think you need to set the response.buffer=true at the top of the page
 
you can also place a response.flush after areas of heavy script (loops,etc.)
 
response.flush should happily scroll beyond one full screen.

How are you formatting your output? If you're using HTML tables, make sure the table is closed before you flush.

BDC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top