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

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Does anyone know if it is possible to access the data in the response.buffer? I want to save the exact html content the user sees on the server. Thanks.
 
response.buffer does not work that way
The buffer holds data back until it's ready to show the user for example

if at the top you placed

Response.Buffer = True

then later in the page you put alot of

Response.write "Hi How Are You"

the client will not see that response, until you flush the buffer

Response.Flush

then if you do have it buffered, you have to use
Response.End to notify the client that you've send the end of the document, so it doesnt wait for more buffered data to come in

this is useful when you either have a table to load, and process, but dont want the client seeing partial data come into the client, or if there is a possibility that you might re-direct the user (in which case, nothing can be sent to the client prior to the Response.Redirect command)

hope that cleared it up.
Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top