Export (0) Print
Expand All

HtmlTextWriter.InnerWriter Property

Gets or sets the text writer that writes the inner content of the markup element.

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

member InnerWriter : TextWriter with get, set

Property Value

Type: System.IO.TextWriter
A TextWriter that writes the inner markup content.

Inner markup content is the text found between the opening and closing tags of a markup language element.

If the InnerWriter property is set to a TextWriter object that is an instance of the HttpWriter class, this fact is noted and a separate reference is saved.

The following code example shows how to use a custom Web server control, derived from the WebControl class, that overrides the Render method. It uses the HtmlTextWriter class to write a <font> element. After it writes the opening tag of the element, it uses the InnerWriter property to write the string "<br> The time on the server:" and concatenates this string with the value of the DateTime.Now property.

No code example is currently available or this language may not be supported.

.NET Framework

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

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft