Solved

difference between response.flush and response.end

Posted on 2006-07-16
5
1,390 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 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