Do Events

P

Popeye

Is there a command within ASP similar to the Do Events command in VB6. The
problem I have is that an asp page that I have written outputs many lines
after extracting data from WMI. In total there are about 1000 lines
generated which are displayed within the browser and saved to a database.

The browser displays the correct results and they are saved into the
database. But the browser only displays the results after it has completed
the entire script. Is it possible to get it to output lines before
continuing with the rest of the script so I can display a section at a time.

Paul
 
R

Ray Costanzo [MVP]

The default setting in >= IIS 5.0 is the buffer all the response text,
meaning that no response is sent to the client until all the server-side
processing is finished. You can either turn off buffering for that page
(Response.Buffer = False), change it globally for the site or application,
or just use Response.Flush in your code.

<%

do while doing something that takes a really long time
'''code, code, code
Response.Flush
'''code, code, code
Loop
%>

Ray at home
 
D

Dave Anderson

Ray said:
do while doing something that takes a really long time
'''code, code, code
Response.Flush
'''code, code, code
Loop

Another factor to consider is browser behavior. Some browsers (IE in
particular) don't like to display tables until they are closed. A
Response.Flush() for each row of a table will produce no improvement for the
IE user (Gecko-based browsers handle this just fine, FWIW).



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top