Share via


HtmlHelper.Label Method

Include Protected Members
Include Inherited Members

Returns an HTML label element for use in a web page.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Label(String) Returns an HTML label that displays the specified text.
Public method Label(String, Object) Returns an HTML label that displays the specified text and that has the specified custom attributes.
Public method Label(String, String) Returns an HTML label that displays the specified text and that has the specified for attribute.
Public method Label(String, String, IDictionary<String, Object>) Returns an HTML label that displays the specified text, and that has the specified for attribute and custom attributes defined by an attribute dictionary.
Public method Label(String, String, Object) Returns an HTML label that displays the specified text, and that has the specified for attribute and custom attributes defined by an attribute object.

Top

Remarks

The HTML label is returned as HTML markup that can be used to render the label in a web page.

See Also

Reference

HtmlHelper Class

System.Web.WebPages.Html Namespace