lee88
asked on
difference between response.flush and response.end
What is the difference between response.flush and response.end?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
I don't think I have ever set the value of Response.Buffer. Does it have a default value?
IIS 5+ the default is TRUE, so most likely TRUE for you :)
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.