This topic has not yet been rated - Rate this topic

HttpResponse.Buffer Property

Gets or sets a value indicating whether to buffer output and send it after the complete response is finished processing.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)
public bool Buffer { get; set; }

Property Value

Type: System.Boolean
true if the output to client is buffered; otherwise, false.

The Buffer property has been deprecated in favor of the BufferOutput property and is provided only for compatibility with earlier versions of ASP. With ASP.NET, use BufferOutput.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Deprecated?
I'm not sure it was appropriate to label this property "Deprecated", since it doesn't behave exactly the same as BufferOutput.

Unless I'm completely missing something, the only way to make Response.Flush actually send content to the browser immediately is to set:

Response.BufferOutput = False
Response.Buffer = True

Nothing else I tried worked, but this did.