Share via


NameExtensions Class

Definition

Gets the HTML ID and name attributes of the HtmlHelper string.

public static class NameExtensions
type NameExtensions = class
Public Module NameExtensions
Inheritance
NameExtensions

Methods

Id(HtmlHelper, String)

Gets the ID of the HtmlHelper string.

IdFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

Gets the ID of the HtmlHelper<TModel> string

IdForModel(HtmlHelper)

Gets the ID of the HtmlHelper string.

Name(HtmlHelper, String)

Gets the full HTML field name for the object that is represented by the expression.

NameFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

Gets the full HTML field name for the object that is represented by the expression.

NameForModel(HtmlHelper)

Gets the full HTML field name for the object that is represented by the expression.

Applies to