Solved

difference between response.flush and response.end

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Select2 jquery help 9 100
Recordset containing single quotes 8 49
html Uncheck Checkbox 2 30
Retreiving SOAP FAULT messages using classical ASP 14 31
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…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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