Previous PageNext Page

6.3.4 Buffer Property

The Buffer property determines whether to buffer page output. When page output is buffered, HTML output is not sent to the client until the script on the page has been processed or until the Flush or End methods are called.
 
The Buffer property cannot be set after the server has sent output to the client. For this reason, you should set the Buffer property on the first line of the script.
 

Syntax

Response.Buffer = flag

Parameters

flag
Specifies whether to buffer page output. It can be one of the following values:

Value Description
TRUE
 
Output is buffered. The server does not send output from the script on the page until all the script has been processes or until the Flush or End method is called.
 
FALSE
 
Output is not buffered. The server sends output from the script on the page as the script is processed.
 

Remarks

If the current ASP script has buffering set to True and does not call the Flush method, the server will honor Keep-Alive requests made by the client. This saves time because the server does not have to create a new connection for each client request.
 
However, buffering prevents any of the response from being displayed to the client until the server has finished all script processing for the current page. For long scripts, this may cause a perceptible delay.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page