Writes any text or spacing that occurs before the opening tag of a markup element.
Assembly: System.Web (in System.Web.dll)
The method can be useful if you want to render additional opening tags before the opening tag of the intended element.Notes to Implementers
The HtmlTextWriter class implementation of the method returns a null reference (Nothing in Visual Basic). Override if you want to write text or spacing ahead of the element opening tag.
The following code example shows how to override the method to determine whether a class that is derived from the HtmlTextWriter class is about to render a <label> element. If so, the override inserts the opening tag of a <font> element immediately before the <label> element. If it is not rendering a <label> element, the base method is used.
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.