473,395 Members | 1,790 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,395 software developers and data experts.

Do Events

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
Jul 19 '05 #1
3 2122
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

"Popeye" <pa**@pgcomputing.not> wrote in message
news:04****************@text.news.blueyonder.co.uk ...
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

Jul 19 '05 #2
Ray Costanzo [MVP] wrote:
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.
Jul 19 '05 #3
Thanks for this I got it to work fine in the end.

Regards
Paul

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:On**************@TK2MSFTNGP12.phx.gbl...
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

"Popeye" <pa**@pgcomputing.not> wrote in message
news:04****************@text.news.blueyonder.co.uk ...
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


Jul 19 '05 #4

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

Similar topics

3
by: Sasha | last post by:
Hi everyone, Here is my problem: I have the following classes: - DataNode - this class is designed to hold some data and will be contained in a tree like data structure DataTree. When...
6
by: Saso Zagoranski | last post by:
Hi! How can I unregister all the events registered to a control? I have seen a piece of code in another thread, which gets all the registered handlers for a specific event. Let's say I have a...
14
by: JPRoot | last post by:
Hi I use the following syntax to have events inherited from base to child classes which works nicely (virtual and override keyword on events). But I am wondering if it is a "supported" way of using...
2
by: Bob Rundle | last post by:
I have the following code, which appears to be working. However it doesn't look right. The part I am wondering about is the logic in DisconnectEvents(). This logic creates a new delegate and...
4
by: LP | last post by:
Hello! I am still transitioning from VB.NET to C#. I undertand the basic concepts of Delegates, more so of Events and somewhat understand AsyncCallback methods. But I need some clarification on...
11
by: Nicky Smith | last post by:
Hello, I'm studying a book on VB.net Win apps, and I'm reading a section on events and delegates and raising events. Is it just me, or is this not just subs dressed up as something else? I...
30
by: Burkhard | last post by:
Hi, I am new to C# (with long year experience in C++) and I am a bit confused by the language construct of events. What is it I can do with events that I cannot do with delegates? At the moment...
5
by: Richard Maher | last post by:
Hi, Here I mean "User" in the Programmer or Javascript sense. I merely wish to programmatically trigger an Event. It would be absolutely fantastic if there was a (Form level?) ONUSEREVENT() and...
14
by: xoozlez | last post by:
Hi there, I have a registration form where I like to filter out the past events of 2007. This is the code I am using : strSQL = "SELECT EventID, EventName, EventDateBegin, EventDateEnd,...
1
by: swethak | last post by:
Hi, I am desiging the calendar application for that purpose i used the below code. But it is for only displys calendar. And also i want to add the events to calendar. In that code displys the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.