Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HtmlTextWriter.EndTagLeftChars Field

Represents the left angle bracket and slash mark (</) of the closing tag of a markup element.

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

public const string EndTagLeftChars

The EndTagLeftChars field is used by the RenderBeginTag method to construct markup element end tags.

The following code example shows how to render the closing tag of a <table> markup element by using the EndTagLeftChars and the TagRightChar fields as parameter values in calls to the Write method.

This code example renders the following markup:

</table>

// Write the closing tag of a table element.
writer.Write(HtmlTextWriter.EndTagLeftChars);
writer.Write("table");
writer.Write(HtmlTextWriter.TagRightChar);
writer.WriteLine();

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft