Easy Tutorial
❮ Met Gettempname Met Writeline ❯

ASP Buffer Property



The Buffer property specifies whether to buffer the output. Typically, ASP scripts execute on the server, and the result of each statement is sent to the client's browser for display. When output buffering is set, the server prevents responses to the browser until all server scripts have been processed, or until the script calls the Flush or End method.

Note: If you set this property, it should be placed before the <html> tag in the .asp file.

Syntax

Parameter Description
flag A Boolean value that specifies whether to buffer page output. False indicates no buffering, and the server sends output while processing. IIS version 4.0 defaults to False, while IIS version 5.0 and higher defaults to True. True indicates buffering. The server does not send output until all scripts on the page have been processed, or until the Flush or End method is called.

Examples

Example 1

In this example, output will not be sent to the browser until the loop ends. If buffer is set to False, each iteration of the loop sends a line to the browser.

Example 2

Example 3


❮ Met Gettempname Met Writeline ❯