
358
|
Chapter 17: The HttpResponse Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Page_Load event handler for that particular example. Any output messages or
return values displayed will be shown as the Text property of the ASP.NET Label
control named Message or displayed by calling Response.Write:
<%@ Page Language="vb" %>
<html>
<head>
<script runat="server">
Sub Page_Load( )
'Example code will go here
End Sub
</script>
</head>
<body>
<asp:label id="Message" runat="server"/>
</body>
</html>
Properties Reference
Buffer
Boolean = Response.Buffer
Response.Buffer = Boolean
Returns or sets a Boolean value that represents whether output is buffered on the
server and sent when the request has completely finished processing, or when
either the Response.Flush or Response.End methods are called. The default value
is
True.
Parameter
Boolean
A Boolean that will receive or set the value of the property.
Notes
This property is supplied for backward compatibility with classic ASP and has
been deprecated in favor of the BufferOutput property. New ASP.NET code
should use BufferOutput in place of Buffer.
One important difference between the Response.Buffer property in classic ASP
and the Buffer and BufferOutput properties in ASP.NET is that in classic ASP, you
could not modify the Buffer property beyond the point at which output had been
sent to the browser ...