473,503 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Flushing the Buffer in .Net

Good afternoon,

Can anyone help me with flushing the buffer in ASP.NET. I have a set of
functions that perform a series of maintainence operations. As these
functions are called sequentially, each contains a status as to the success
or failure of the particular process. I want to be able to send to the
client each output string at it happens. The way it is working right now is
that it is storing the output until all of the functions are complete.

Many thanks.
Nov 18 '05 #1
3 8509
Eric wrote:
Can anyone help me with flushing the buffer in ASP.NET. I have a set of
functions that perform a series of maintainence operations. As these
functions are called sequentially, each contains a status as to the success
or failure of the particular process. I want to be able to send to the
client each output string at it happens. The way it is working right now is
that it is storing the output until all of the functions are complete.


Have you tried putting Response.Flush() after each function has
completed processing? Technical docs for this method available at:
http://msdn.microsoft.com/library/de...FlushTopic.asp

Happy Programming!

--

Scott Mitchell
mi******@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
Nov 18 '05 #2
turn off page buffering

Page.Response.BufferOutput = false;

then use a flush to ouput the message

Page.Response.Flush();

be sure your markup is simple, or the browser will not render it, but wait
for the complete page.

-- bruce (sqlwork.com)
"Eric" <Do***********@hotmail.com> wrote in message
news:6Y********************@adelphia.com...
Good afternoon,

Can anyone help me with flushing the buffer in ASP.NET. I have a set of
functions that perform a series of maintainence operations. As these
functions are called sequentially, each contains a status as to the success or failure of the particular process. I want to be able to send to the
client each output string at it happens. The way it is working right now is that it is storing the output until all of the functions are complete.

Many thanks.

Nov 18 '05 #3
The Page.Response.BufferOutput did the trick....

As the status information is added it eventually outgrows the status
textbox, is there any way to scroll the text box as each item is entered so
the user sees the latest process completed?

Many thanks.
"Bruce Barker" <no**********@sqlwork.com> wrote in message
news:uc**************@tk2msftngp13.phx.gbl...
turn off page buffering

Page.Response.BufferOutput = false;

then use a flush to ouput the message

Page.Response.Flush();

be sure your markup is simple, or the browser will not render it, but wait
for the complete page.

-- bruce (sqlwork.com)
"Eric" <Do***********@hotmail.com> wrote in message
news:6Y********************@adelphia.com...
Good afternoon,

Can anyone help me with flushing the buffer in ASP.NET. I have a set of
functions that perform a series of maintainence operations. As these
functions are called sequentially, each contains a status as to the success
or failure of the particular process. I want to be able to send to the
client each output string at it happens. The way it is working right

now is
that it is storing the output until all of the functions are complete.

Many thanks.


Nov 18 '05 #4

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

Similar topics

6
4427
by: Farshid Lashkari | last post by:
Hi, My application has python embedded into it. I noticed that when I run any python code the output is buffered and doesn't get flushed until my application exits. To fix this I simply flush...
6
5404
by: g pavlov | last post by:
W3C recommendations notwithstanding (see http://w3.org/TR/html401/appendix/notes.html#notes-tables) I can't seem to persuade either of the leading browsers to do true incremental table loading....
3
1912
by: Andyza | last post by:
In the following code when i = 500 the buffer on the server is flushed to the client. However, because the content that is sent to the browser contains an html table Internet Explorer does not...
4
41763
by: Stephan Steiner | last post by:
Hi I have a networking application that periodically needs to go into sleep mode (from an application point of view, I'm simply suspending the receiver thread until it's time to start listening...
8
3693
by: CJM | last post by:
I have quite a large report, which takes a couple of minutes to run. I'd like to show line-by-line updates as they become available, but since I'm using IE6, Response.Flush() doesnt work. I know...
1
3974
by: Max Powers | last post by:
Hello, I have a VB.NET code that creates a StreamWriter file first and then it does a series of procedures that write lines for this StreamWriter. When all the procedures are done, the...
5
2839
by: arnuld | last post by:
this is from mentioned section. i did not understand some things here: it means "flushing the buffer" and "writing to output device" are SAME thing, these are just 2 different names for the...
0
1349
by: Ethan Metsger | last post by:
Hi, all. I apologize for what is perhaps a newb question. I'm in the process of transitioning our testing framework from Perl to Python. While that alone probably sets off some red flags, I'm...
1
2074
by: devgupta01 | last post by:
What is the flushing the buffer? could u please explain with example.
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7089
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
7282
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
7339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6995
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...
1
5017
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.