Link to home
Start Free TrialLog in
Avatar of lee88
lee88Flag for United States of America

asked on

difference between response.flush and response.end

What is the difference between response.flush and response.end?
ASKER CERTIFIED SOLUTION
Avatar of DireOrbAnt
DireOrbAnt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DireOrbAnt
DireOrbAnt

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.
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.
Avatar of lee88

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 :)