PagesSection.Buffer Property

Gets or sets a value that specifies whether .aspx pages and .ascx controls use response buffering.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public bool Buffer { get; set; }
/** @property */
public boolean get_Buffer ()

/** @property */
public void set_Buffer (boolean value)

public function get Buffer () : boolean

public function set Buffer (value : boolean)

Not applicable.

Property Value

true if .aspx pages and .ascx controls use response buffering; otherwise, false. The default is true.

When response buffering is turned on, the page or control output is buffered until after the entire page or control is processed. Do not set Buffer to true if performance is a key consideration.

The following code example shows how to use the Buffer property.

// Get the current Buffer property value.
    "Current Buffer value: '{0}'", pagesSection.Buffer);

// Set the Buffer property to true.
pagesSection.Buffer = true;

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions