System.Web.UI.Page.CreateHtmlTextWriter Method

Creates an System.Web.UI.HtmlTextWriter object to render the page's content.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected virtual HtmlTextWriter CreateHtmlTextWriter (System.IO.TextWriter tw)

Parameters

tw
The System.IO.TextWriter used to create the System.Web.UI.HtmlTextWriter.

Returns

An System.Web.UI.HtmlTextWriter or System.Web.UI.Html32TextWriter.

Remarks

The Page.CreateHtmlTextWriter(System.IO.TextWriter) method creates a System.IO.TextWriter through the System.Web.HttpRequest.Browser property of the System.Web.HttpContext.Request object associated with the page request. You can add a reference to an System.Web.UI.HtmlTextWriter in the browserCaps configuration section. Override the Page.CreateHtmlTextWriter(System.IO.TextWriter) method to perform custom lookup.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0