Output Property

HttpResponse.Output Property


Enables output of text to the outgoing HTTP response stream.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public TextWriter Output { get; set; }

Property Value

Type: System.IO.TextWriter

A TextWriter object that enables custom output to the client.

The following example is an ASP.NET page that contains a TextBox control that has its TextMode property set to MultiLine. The page's code takes the text that a user enters in the TextMode, uses the HtmlEncode method to HTML encode it, and the Output property to display the encoded string to the page.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft