Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

difference between response.flush and response.end

Posted on 2006-07-16
5
Medium Priority
?
1,408 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

876 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