HtmlTextWriter.RenderAfterTag Method ()
.NET Framework (current version)
Writes any spacing or text that occurs after the closing tag for a markup element.
Assembly: System.Web (in System.Web.dll)
The RenderAfterTag method can be useful if you want to render additional closing tags after the element tag.
Notes to Inheritors:
The HtmlTextWriter class implementation of the RenderAfterTag method returns null. Override RenderAfterTag if you want to write text or spacing after the element closing tag.
The following code example shows how to override the RenderAfterTag method to determine whether a class derived from the HtmlTextWriter class is rendering a <label> element. If so, the RenderAfterTag override inserts the closing tag of a <font> element immediately after the <label> element. If it is not a <label> element, the RenderAfterTag base method is used.
.NET Framework
Available since 1.1
Available since 1.1
Show: