Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response.buffer=False

Status
Not open for further replies.

mellenburg

Programmer
Aug 27, 2001
77
US
Can someone tell me what Response.buffer=False does? I'm running scripts that take several minutes to process so I'm assuming it has something to do with keeping the browser active.

The problem I'm having is when I have this statement on a form. When I submit information the first time, everything is fine. When I submit twice, I get the following error message:

Buffering cannot be turned off once it is already turned on.

I don't get the error if I remove the Response.buffer=False statement, and it only appears in the program once. If this statement is necessary, how do I get around the error that seems to appear when the statement is encountered a second time.

Matt
 
i beleive allows IIS to send any response to the browser while the server is processing your ASP script
 
Did you try putting that line at the very top of your script?

You can also just take it out and use a periodic Response.Flush to force the server to send the contents of the buffer to the browser.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top