Share via


LabelExtensions.LabelForModel Method

Include Protected Members
Include Inherited Members

Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text.

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 methodStatic member LabelForModel(HtmlHelper) Returns an HTML label element and the property name of the property that is represented by the model.
Public methodStatic member LabelForModel(HtmlHelper, String) Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text.

Top

See Also

Reference

LabelExtensions Class

System.Web.Mvc.Html Namespace