Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

ASP Response Object 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 ASP Response Object Flush or ASP Response Object 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: ASP Response Object Buffer Property

Response.Buffer = flag

Parameters: ASP Response Object Buffer Property

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: ASP Response Object Buffer Property

If the current ASP script has buffering set to TRUE and does not call the ASP Response Object 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 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.