• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class HtmlLabelExtensions

Represents support for the HTML label element in an ASP.NET MVC view.

Inheritance
System.Object
HtmlLabelExtensions
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class HtmlLabelExtensions : object

Methods

| Improve this Doc View Source

Label(DnnHtmlHelper, String, IDictionary<String, Object>)

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

Declaration
public static MvcHtmlString Label(this DnnHtmlHelper html, string expression, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the property to display.

IDictionary<System.String, System.Object> htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

Label(DnnHtmlHelper, String, Object)

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

Declaration
public static MvcHtmlString Label(this DnnHtmlHelper html, string expression, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the property to display.

System.Object htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

Label(DnnHtmlHelper, String, String, IDictionary<String, Object>)

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

Declaration
public static MvcHtmlString Label(this DnnHtmlHelper html, string expression, string labelText, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the property to display.

System.String labelText

The label text.

IDictionary<System.String, System.Object> htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

Label(DnnHtmlHelper, String, String, Object)

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

Declaration
public static MvcHtmlString Label(this DnnHtmlHelper html, string expression, string labelText, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the property to display.

System.String labelText

The label text.

System.Object htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

Label(DnnHtmlHelper, String, String)

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

Declaration
public static MvcHtmlString Label(this DnnHtmlHelper html, string expression, string labelText)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the property to display.

System.String labelText

The label text to display.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

Label(DnnHtmlHelper, String)

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

Declaration
public static MvcHtmlString Label(this DnnHtmlHelper html, string expression)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String expression

An expression that identifies the property to display.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

LabelFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, IDictionary<String, Object>)

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

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the property to display.

IDictionary<System.String, System.Object> htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The type of the value.

| Improve this Doc View Source

LabelFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, Object)

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

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the property to display.

System.Object htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The value.

| Improve this Doc View Source

LabelFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, IDictionary<String, Object>)

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

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string labelText, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the property to display.

System.String labelText

The label text to display.

IDictionary<System.String, System.Object> htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The type of the value.

| Improve this Doc View Source

LabelFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, Object)

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

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string labelText, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the property to display.

System.String labelText

The label text.

System.Object htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The Value.

| Improve this Doc View Source

LabelFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String)

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

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string labelText)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the property to display.

System.String labelText

The label text to display.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The type of the value.

| Improve this Doc View Source

LabelFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>)

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

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression)
Parameters
Type Name Description
DnnHtmlHelper<TModel> html

The HTML helper instance that this method extends.

Expression<Func<TModel, TValue>> expression

An expression that identifies the property to display.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

Type Parameters
Name Description
TModel

The type of the model.

TValue

The type of the value.

| Improve this Doc View Source

LabelForModel(DnnHtmlHelper, IDictionary<String, Object>)

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

Declaration
public static MvcHtmlString LabelForModel(this DnnHtmlHelper html, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

IDictionary<System.String, System.Object> htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

LabelForModel(DnnHtmlHelper, Object)

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

Declaration
public static MvcHtmlString LabelForModel(this DnnHtmlHelper html, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.Object htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

LabelForModel(DnnHtmlHelper, String, IDictionary<String, Object>)

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

Declaration
public static MvcHtmlString LabelForModel(this DnnHtmlHelper html, string labelText, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String labelText

The label Text.

IDictionary<System.String, System.Object> htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

LabelForModel(DnnHtmlHelper, String, Object)

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

Declaration
public static MvcHtmlString LabelForModel(this DnnHtmlHelper html, string labelText, object htmlAttributes)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String labelText

The label text.

System.Object htmlAttributes

An object that contains the HTML attributes to set for the element.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

LabelForModel(DnnHtmlHelper, String)

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

Declaration
public static MvcHtmlString LabelForModel(this DnnHtmlHelper html, string labelText)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

System.String labelText

The label text to display.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the expression.

| Improve this Doc View Source

LabelForModel(DnnHtmlHelper)

Returns an HTML label element and the property name of the property that is represented by the model.

Declaration
public static MvcHtmlString LabelForModel(this DnnHtmlHelper html)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper instance that this method extends.

Returns
Type Description
MvcHtmlString

An HTML label element and the property name of the property that is represented by the model.

  • View Source
Back to top by the community, for the community... #DNNCMS