Export (0) Print
Expand All

Label.TagKey Property

Gets the HTML tag that is used to render the Label control.

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

protected override HtmlTextWriterTag TagKey { get; }

Property Value

Type: System.Web.UI.HtmlTextWriterTag
The HtmlTextWriterTag value used to render the Label.

Use the TagKey property to determine the HtmlTextWriterTag value that is associated with a Label control. The TagKey property is used primarily by control developers.

.NET Framework

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