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 causing problems

Status
Not open for further replies.

ppynrde

Programmer
Sep 11, 2001
20
GB
I have IIS set up on my windows 2000 machine and I am running an ASP page that completes 5 or so stored procedures in a particular order. These can take quite a while to run so I am trying to inform the user as to the progress of the page by using the response.flush command informing them how many more steps are left. However, even when using this, the page seems to be completely processed before anything is passed back to the browser. Is there something I am missing, or is there another way to inform the user of what is going on.

Any help would be greatly appreciated.

Thanks in advance
 
Check out this thread for a simple loading message you can show to your users w/ no special widgets. It just uses a popup window and some simple javascript to do its thing:

thread333-149452

As far as the question of response.flush, I suspect that your output is all in one big table, which hasn't yet been closed. You have to remember that the browser (even if the HTML has been buffered to it) will not render any part of a table until the </table> tag has been issued.

That applies to nested tables, too. If you have 100 tables nested inside one big table, none of the child tables will be rendered until the parent table's </table> tag has been issued.

I think you'll like the method in that thread, though. It works well, and the clients that I've implemented this for really love it. Even if the page only takes a few seconds to load up, it gives the users some signal that something is going on, and to be patient.

:)
Paul Prewett
penny.gif
penny.gif
 
Thanks very much for that. I have heard about the way browsers only display tables once they are closed but had not even begun to think of it in this context. Thanks also for the thread link!!

Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top