Solved

difference between response.flush and response.end

Posted on 2006-07-16
5
1,385 Views
Last Modified: 2008-01-09
What is the difference between response.flush and response.end?
0
Comment
Question by:lee88
  • 3
5 Comments
 
LVL 26

Accepted Solution

by:
DireOrbAnt earned 500 total points
ID: 17117776
response.End will not accept any more writes, response.flush simply flush the write buffers and sends them to the browser.
So with flush, other writes after will go through, with end, they won't.
0
 
LVL 26

Expert Comment

by:DireOrbAnt
ID: 17117787
I guess I could be more precise.
If Response.Buffer = True then Response.End does a Flush and then Stops (not taking any more writes and sending them to the browser.
If Response.Buffer = False then Response.Flush does nothing where Response.End just stops sending from that point on.
0
 
LVL 10

Expert Comment

by:slamhound
ID: 17119235
Response.End just stops processing. If your software is set up to dump what's left over at the end of excution then this is waht it will do.

Response.Buffer = True - When you do a response.end, the process ends so the system just happens to dump the buffer.
Response.Buffer = False - Response.End still just stops execution but nothing is buffered so nothing is dumped to the screen. Response.Flush also does nothing because nothing has been buffered.
0
 

Author Comment

by:lee88
ID: 17120881
I don't think I have ever set the value of Response.Buffer. Does it have a default value?
0
 
LVL 26

Expert Comment

by:DireOrbAnt
ID: 17121934
IIS 5+ the default is TRUE, so most likely TRUE for you :)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now