• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1416
  • Last Modified:

difference between response.flush and response.end

What is the difference between response.flush and response.end?
0
lee88
Asked:
lee88
  • 3
1 Solution
 
DireOrbAntCommented:
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
 
DireOrbAntCommented:
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
 
slamhoundCommented:
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
 
lee88Author Commented:
I don't think I have ever set the value of Response.Buffer. Does it have a default value?
0
 
DireOrbAntCommented:
IIS 5+ the default is TRUE, so most likely TRUE for you :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now