HtmlHelper<TModel> HtmlHelper<TModel> HtmlHelper<TModel> Class

Definition

public class HtmlHelper<TModel> : Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper, Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>
type HtmlHelper<'Model> = class
    inherit HtmlHelper
    interface IHtmlHelper<'Model>
    interface IHtmlHelper
Public Class HtmlHelper(Of TModel)
Inherits HtmlHelper
Implements IHtmlHelper(Of TModel)

Type Parameters

TModel
Inheritance
HtmlHelper<TModel>HtmlHelper<TModel>HtmlHelper<TModel>
Implements

Constructors

HtmlHelper<TModel>(IHtmlGenerator, ICompositeViewEngine, IModelMetadataProvider, IViewBufferScope, HtmlEncoder, UrlEncoder, ExpressionTextCache) HtmlHelper<TModel>(IHtmlGenerator, ICompositeViewEngine, IModelMetadataProvider, IViewBufferScope, HtmlEncoder, UrlEncoder, ExpressionTextCache) HtmlHelper<TModel>(IHtmlGenerator, ICompositeViewEngine, IModelMetadataProvider, IViewBufferScope, HtmlEncoder, UrlEncoder, ExpressionTextCache)

Initializes a new instance of the HtmlHelper<TModel> class.

Properties

Html5DateRenderingMode Html5DateRenderingMode Html5DateRenderingMode Inherited from HtmlHelper
IdAttributeDotReplacement IdAttributeDotReplacement IdAttributeDotReplacement Inherited from HtmlHelper
MetadataProvider MetadataProvider MetadataProvider Inherited from HtmlHelper
TempData TempData TempData Inherited from HtmlHelper
UrlEncoder UrlEncoder UrlEncoder Inherited from HtmlHelper
ViewBag ViewBag ViewBag Inherited from HtmlHelper
ViewContext ViewContext ViewContext Inherited from HtmlHelper
ViewData ViewData ViewData

Methods

ActionLink(String, String, String, String, String, String, Object, Object) ActionLink(String, String, String, String, String, String, Object, Object) ActionLink(String, String, String, String, String, String, Object, Object) Inherited from HtmlHelper
AntiForgeryToken() AntiForgeryToken() AntiForgeryToken() Inherited from HtmlHelper
BeginForm(String, String, Object, FormMethod, Nullable<Boolean>, Object) BeginForm(String, String, Object, FormMethod, Nullable<Boolean>, Object) BeginForm(String, String, Object, FormMethod, Nullable<Boolean>, Object) Inherited from HtmlHelper
BeginRouteForm(String, Object, FormMethod, Nullable<Boolean>, Object) BeginRouteForm(String, Object, FormMethod, Nullable<Boolean>, Object) BeginRouteForm(String, Object, FormMethod, Nullable<Boolean>, Object) Inherited from HtmlHelper
CheckBox(String, Nullable<Boolean>, Object) CheckBox(String, Nullable<Boolean>, Object) CheckBox(String, Nullable<Boolean>, Object) Inherited from HtmlHelper
CheckBoxFor(Expression<Func<TModel,Boolean>>, Object) CheckBoxFor(Expression<Func<TModel,Boolean>>, Object) CheckBoxFor(Expression<Func<TModel,Boolean>>, Object)
Contextualize(ViewContext) Contextualize(ViewContext) Contextualize(ViewContext)
CreateForm() CreateForm() CreateForm()

Override this method to return an MvcForm subclass. That subclass may change EndForm() behavior.

(Inherited from HtmlHelper)
Display(String, String, String, Object) Display(String, String, String, Object) Display(String, String, String, Object) Inherited from HtmlHelper
DisplayFor<TResult>(Expression<Func<TModel,TResult>>, String, String, Object) DisplayFor<TResult>(Expression<Func<TModel,TResult>>, String, String, Object) DisplayFor<TResult>(Expression<Func<TModel,TResult>>, String, String, Object)
DisplayName(String) DisplayName(String) DisplayName(String) Inherited from HtmlHelper
DisplayNameFor<TResult>(Expression<Func<TModel,TResult>>) DisplayNameFor<TResult>(Expression<Func<TModel,TResult>>) DisplayNameFor<TResult>(Expression<Func<TModel,TResult>>)
DisplayNameForInnerType<TModelItem,TResult>(Expression<Func<TModelItem,TResult>>) DisplayNameForInnerType<TModelItem,TResult>(Expression<Func<TModelItem,TResult>>) DisplayNameForInnerType<TModelItem,TResult>(Expression<Func<TModelItem,TResult>>)
DisplayText(String) DisplayText(String) DisplayText(String) Inherited from HtmlHelper
DisplayTextFor<TResult>(Expression<Func<TModel,TResult>>) DisplayTextFor<TResult>(Expression<Func<TModel,TResult>>) DisplayTextFor<TResult>(Expression<Func<TModel,TResult>>)
DropDownList(String, IEnumerable<SelectListItem>, String, Object) DropDownList(String, IEnumerable<SelectListItem>, String, Object) DropDownList(String, IEnumerable<SelectListItem>, String, Object) Inherited from HtmlHelper
DropDownListFor<TResult>(Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, String, Object) DropDownListFor<TResult>(Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, String, Object) DropDownListFor<TResult>(Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, String, Object)
Editor(String, String, String, Object) Editor(String, String, String, Object) Editor(String, String, String, Object) Inherited from HtmlHelper
EditorFor<TResult>(Expression<Func<TModel,TResult>>, String, String, Object) EditorFor<TResult>(Expression<Func<TModel,TResult>>, String, String, Object) EditorFor<TResult>(Expression<Func<TModel,TResult>>, String, String, Object)
Encode(Object) Encode(Object) Encode(Object) Inherited from HtmlHelper
Encode(String) Encode(String) Encode(String) Inherited from HtmlHelper
EndForm() EndForm() EndForm() Inherited from HtmlHelper
FormatValue(Object, String) FormatValue(Object, String) FormatValue(Object, String) Inherited from HtmlHelper
GenerateCheckBox(ModelExplorer, String, Nullable<Boolean>, Object) GenerateCheckBox(ModelExplorer, String, Nullable<Boolean>, Object) GenerateCheckBox(ModelExplorer, String, Nullable<Boolean>, Object) Inherited from HtmlHelper
GenerateDisplay(ModelExplorer, String, String, Object) GenerateDisplay(ModelExplorer, String, String, Object) GenerateDisplay(ModelExplorer, String, String, Object) Inherited from HtmlHelper
GenerateDisplayName(ModelExplorer, String) GenerateDisplayName(ModelExplorer, String) GenerateDisplayName(ModelExplorer, String) Inherited from HtmlHelper
GenerateDisplayText(ModelExplorer) GenerateDisplayText(ModelExplorer) GenerateDisplayText(ModelExplorer) Inherited from HtmlHelper
GenerateDropDown(ModelExplorer, String, IEnumerable<SelectListItem>, String, Object) GenerateDropDown(ModelExplorer, String, IEnumerable<SelectListItem>, String, Object) GenerateDropDown(ModelExplorer, String, IEnumerable<SelectListItem>, String, Object) Inherited from HtmlHelper
GenerateEditor(ModelExplorer, String, String, Object) GenerateEditor(ModelExplorer, String, String, Object) GenerateEditor(ModelExplorer, String, String, Object) Inherited from HtmlHelper
GenerateForm(String, String, Object, FormMethod, Nullable<Boolean>, Object) GenerateForm(String, String, Object, FormMethod, Nullable<Boolean>, Object) GenerateForm(String, String, Object, FormMethod, Nullable<Boolean>, Object)

Renders a <form> start tag to the response. When the user submits the form, the action with name actionName will process the request.

(Inherited from HtmlHelper)
GenerateHidden(ModelExplorer, String, Object, Boolean, Object) GenerateHidden(ModelExplorer, String, Object, Boolean, Object) GenerateHidden(ModelExplorer, String, Object, Boolean, Object) Inherited from HtmlHelper
GenerateId(String) GenerateId(String) GenerateId(String) Inherited from HtmlHelper
GenerateIdFromName(String) GenerateIdFromName(String) GenerateIdFromName(String) Inherited from HtmlHelper
GenerateLabel(ModelExplorer, String, String, Object) GenerateLabel(ModelExplorer, String, String, Object) GenerateLabel(ModelExplorer, String, String, Object) Inherited from HtmlHelper
GenerateListBox(ModelExplorer, String, IEnumerable<SelectListItem>, Object) GenerateListBox(ModelExplorer, String, IEnumerable<SelectListItem>, Object) GenerateListBox(ModelExplorer, String, IEnumerable<SelectListItem>, Object) Inherited from HtmlHelper
GenerateName(String) GenerateName(String) GenerateName(String) Inherited from HtmlHelper
GeneratePassword(ModelExplorer, String, Object, Object) GeneratePassword(ModelExplorer, String, Object, Object) GeneratePassword(ModelExplorer, String, Object, Object) Inherited from HtmlHelper
GenerateRadioButton(ModelExplorer, String, Object, Nullable<Boolean>, Object) GenerateRadioButton(ModelExplorer, String, Object, Nullable<Boolean>, Object) GenerateRadioButton(ModelExplorer, String, Object, Nullable<Boolean>, Object) Inherited from HtmlHelper
GenerateRouteForm(String, Object, FormMethod, Nullable<Boolean>, Object) GenerateRouteForm(String, Object, FormMethod, Nullable<Boolean>, Object) GenerateRouteForm(String, Object, FormMethod, Nullable<Boolean>, Object)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

(Inherited from HtmlHelper)
GenerateTextArea(ModelExplorer, String, Int32, Int32, Object) GenerateTextArea(ModelExplorer, String, Int32, Int32, Object) GenerateTextArea(ModelExplorer, String, Int32, Int32, Object) Inherited from HtmlHelper
GenerateTextBox(ModelExplorer, String, Object, String, Object) GenerateTextBox(ModelExplorer, String, Object, String, Object) GenerateTextBox(ModelExplorer, String, Object, String, Object) Inherited from HtmlHelper
GenerateValidationMessage(ModelExplorer, String, String, String, Object) GenerateValidationMessage(ModelExplorer, String, String, String, Object) GenerateValidationMessage(ModelExplorer, String, String, String, Object) Inherited from HtmlHelper
GenerateValidationSummary(Boolean, String, Object, String) GenerateValidationSummary(Boolean, String, Object, String) GenerateValidationSummary(Boolean, String, Object, String) Inherited from HtmlHelper
GenerateValue(String, Object, String, Boolean) GenerateValue(String, Object, String, Boolean) GenerateValue(String, Object, String, Boolean) Inherited from HtmlHelper
GetEnumSelectList(ModelMetadata) GetEnumSelectList(ModelMetadata) GetEnumSelectList(ModelMetadata)

Returns a select list for the given metadata.

(Inherited from HtmlHelper)
GetEnumSelectList(Type) GetEnumSelectList(Type) GetEnumSelectList(Type) Inherited from HtmlHelper
GetEnumSelectList<TEnum>() GetEnumSelectList<TEnum>() GetEnumSelectList<TEnum>() Inherited from HtmlHelper
GetExpressionName<TResult>(Expression<Func<TModel,TResult>>) GetExpressionName<TResult>(Expression<Func<TModel,TResult>>) GetExpressionName<TResult>(Expression<Func<TModel,TResult>>)
GetModelExplorer<TResult>(Expression<Func<TModel,TResult>>) GetModelExplorer<TResult>(Expression<Func<TModel,TResult>>) GetModelExplorer<TResult>(Expression<Func<TModel,TResult>>)
Hidden(String, Object, Object) Hidden(String, Object, Object) Hidden(String, Object, Object) Inherited from HtmlHelper
HiddenFor<TResult>(Expression<Func<TModel,TResult>>, Object) HiddenFor<TResult>(Expression<Func<TModel,TResult>>, Object) HiddenFor<TResult>(Expression<Func<TModel,TResult>>, Object)
Id(String) Id(String) Id(String) Inherited from HtmlHelper
IdFor<TResult>(Expression<Func<TModel,TResult>>) IdFor<TResult>(Expression<Func<TModel,TResult>>) IdFor<TResult>(Expression<Func<TModel,TResult>>)
Label(String, String, Object) Label(String, String, Object) Label(String, String, Object) Inherited from HtmlHelper
LabelFor<TResult>(Expression<Func<TModel,TResult>>, String, Object) LabelFor<TResult>(Expression<Func<TModel,TResult>>, String, Object) LabelFor<TResult>(Expression<Func<TModel,TResult>>, String, Object)
ListBox(String, IEnumerable<SelectListItem>, Object) ListBox(String, IEnumerable<SelectListItem>, Object) ListBox(String, IEnumerable<SelectListItem>, Object) Inherited from HtmlHelper
ListBoxFor<TResult>(Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, Object) ListBoxFor<TResult>(Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, Object) ListBoxFor<TResult>(Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, Object)
Name(String) Name(String) Name(String) Inherited from HtmlHelper
NameFor<TResult>(Expression<Func<TModel,TResult>>) NameFor<TResult>(Expression<Func<TModel,TResult>>) NameFor<TResult>(Expression<Func<TModel,TResult>>)
PartialAsync(String, Object, ViewDataDictionary) PartialAsync(String, Object, ViewDataDictionary) PartialAsync(String, Object, ViewDataDictionary) Inherited from HtmlHelper
Password(String, Object, Object) Password(String, Object, Object) Password(String, Object, Object) Inherited from HtmlHelper
PasswordFor<TResult>(Expression<Func<TModel,TResult>>, Object) PasswordFor<TResult>(Expression<Func<TModel,TResult>>, Object) PasswordFor<TResult>(Expression<Func<TModel,TResult>>, Object)
RadioButton(String, Object, Nullable<Boolean>, Object) RadioButton(String, Object, Nullable<Boolean>, Object) RadioButton(String, Object, Nullable<Boolean>, Object) Inherited from HtmlHelper
RadioButtonFor<TResult>(Expression<Func<TModel,TResult>>, Object, Object) RadioButtonFor<TResult>(Expression<Func<TModel,TResult>>, Object, Object) RadioButtonFor<TResult>(Expression<Func<TModel,TResult>>, Object, Object)
Raw(Object) Raw(Object) Raw(Object) Inherited from HtmlHelper
Raw(String) Raw(String) Raw(String) Inherited from HtmlHelper
RenderPartialAsync(String, Object, ViewDataDictionary) RenderPartialAsync(String, Object, ViewDataDictionary) RenderPartialAsync(String, Object, ViewDataDictionary) Inherited from HtmlHelper
RenderPartialCoreAsync(String, Object, ViewDataDictionary, TextWriter) RenderPartialCoreAsync(String, Object, ViewDataDictionary, TextWriter) RenderPartialCoreAsync(String, Object, ViewDataDictionary, TextWriter) Inherited from HtmlHelper
RouteLink(String, String, String, String, String, Object, Object) RouteLink(String, String, String, String, String, Object, Object) RouteLink(String, String, String, String, String, Object, Object) Inherited from HtmlHelper
TextArea(String, String, Int32, Int32, Object) TextArea(String, String, Int32, Int32, Object) TextArea(String, String, Int32, Int32, Object) Inherited from HtmlHelper
TextAreaFor<TResult>(Expression<Func<TModel,TResult>>, Int32, Int32, Object) TextAreaFor<TResult>(Expression<Func<TModel,TResult>>, Int32, Int32, Object) TextAreaFor<TResult>(Expression<Func<TModel,TResult>>, Int32, Int32, Object)
TextBox(String, Object, String, Object) TextBox(String, Object, String, Object) TextBox(String, Object, String, Object) Inherited from HtmlHelper
TextBoxFor<TResult>(Expression<Func<TModel,TResult>>, String, Object) TextBoxFor<TResult>(Expression<Func<TModel,TResult>>, String, Object) TextBoxFor<TResult>(Expression<Func<TModel,TResult>>, String, Object)
ValidationMessage(String, String, Object, String) ValidationMessage(String, String, Object, String) ValidationMessage(String, String, Object, String) Inherited from HtmlHelper
ValidationMessageFor<TResult>(Expression<Func<TModel,TResult>>, String, Object, String) ValidationMessageFor<TResult>(Expression<Func<TModel,TResult>>, String, Object, String) ValidationMessageFor<TResult>(Expression<Func<TModel,TResult>>, String, Object, String)
ValidationSummary(Boolean, String, Object, String) ValidationSummary(Boolean, String, Object, String) ValidationSummary(Boolean, String, Object, String) Inherited from HtmlHelper
Value(String, String) Value(String, String) Value(String, String) Inherited from HtmlHelper
ValueFor<TResult>(Expression<Func<TModel,TResult>>, String) ValueFor<TResult>(Expression<Func<TModel,TResult>>, String) ValueFor<TResult>(Expression<Func<TModel,TResult>>, String)

Extension Methods

Display(IHtmlHelper, String) Display(IHtmlHelper, String) Display(IHtmlHelper, String)

Returns HTML markup for the expression, using a display template. The template is found using the expression's ModelMetadata.

Display(IHtmlHelper, String, Object) Display(IHtmlHelper, String, Object) Display(IHtmlHelper, String, Object)

Returns HTML markup for the expression, using a display template and specified additional view data. The template is found using the expression's ModelMetadata.

Display(IHtmlHelper, String, String) Display(IHtmlHelper, String, String) Display(IHtmlHelper, String, String)

Returns HTML markup for the expression, using a display template. The template is found using the templateName or the expression's ModelMetadata.

Display(IHtmlHelper, String, String, Object) Display(IHtmlHelper, String, String, Object) Display(IHtmlHelper, String, String, Object)

Returns HTML markup for the expression, using a display template and specified additional view data. The template is found using the templateName or the expression's ModelMetadata.

Display(IHtmlHelper, String, String, String) Display(IHtmlHelper, String, String, String) Display(IHtmlHelper, String, String, String)

Returns HTML markup for the expression, using a display template and specified HTML field name. The template is found using the templateName or the expression'sModelMetadata.

DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>)

Returns HTML markup for the expression, using a display template. The template is found using the expression's ModelMetadata.

DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object)

Returns HTML markup for the expression, using a display template and specified additional view data. The template is found using the expression's ModelMetadata.

DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String) DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String) DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String)

Returns HTML markup for the expression, using a display template. The template is found using the templateName or the expression's ModelMetadata.

DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, Object) DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, Object) DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, Object)

Returns HTML markup for the expression, using a display template and specified additional view data. The template is found using the templateName or the expression's ModelMetadata.

DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, String) DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, String) DisplayFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, String)

Returns HTML markup for the expression, using a display template and specified HTML field name. The template is found using the templateName or the expression's ModelMetadata.

DisplayForModel(IHtmlHelper) DisplayForModel(IHtmlHelper) DisplayForModel(IHtmlHelper)

Returns HTML markup for the current model, using a display template. The template is found using the model's ModelMetadata.

DisplayForModel(IHtmlHelper, Object) DisplayForModel(IHtmlHelper, Object) DisplayForModel(IHtmlHelper, Object)

Returns HTML markup for the current model, using a display template and specified additional view data. The template is found using the model's ModelMetadata.

DisplayForModel(IHtmlHelper, String) DisplayForModel(IHtmlHelper, String) DisplayForModel(IHtmlHelper, String)

Returns HTML markup for the current model, using a display template. The template is found using the templateName or the model's ModelMetadata.

DisplayForModel(IHtmlHelper, String, Object) DisplayForModel(IHtmlHelper, String, Object) DisplayForModel(IHtmlHelper, String, Object)

Returns HTML markup for the current model, using a display template and specified additional view data. The template is found using the templateName or the model's ModelMetadata.

DisplayForModel(IHtmlHelper, String, String) DisplayForModel(IHtmlHelper, String, String) DisplayForModel(IHtmlHelper, String, String)

Returns HTML markup for the current model, using a display template and specified HTML field name. The template is found using the templateName or the model's ModelMetadata.

DisplayForModel(IHtmlHelper, String, String, Object) DisplayForModel(IHtmlHelper, String, String, Object) DisplayForModel(IHtmlHelper, String, String, Object)

Returns HTML markup for the current model, using a display template, specified HTML field name, and additional view data. The template is found using the templateName or the model's ModelMetadata.

DisplayNameFor<TModelItem,TResult>(IHtmlHelper<IEnumerable<TModelItem>>, Expression<Func<TModelItem,TResult>>) DisplayNameFor<TModelItem,TResult>(IHtmlHelper<IEnumerable<TModelItem>>, Expression<Func<TModelItem,TResult>>) DisplayNameFor<TModelItem,TResult>(IHtmlHelper<IEnumerable<TModelItem>>, Expression<Func<TModelItem,TResult>>)

Returns the display name for the specified expression if the current model represents a collection.

DisplayNameForModel(IHtmlHelper) DisplayNameForModel(IHtmlHelper) DisplayNameForModel(IHtmlHelper)

Returns the display name for the current model.

Editor(IHtmlHelper, String) Editor(IHtmlHelper, String) Editor(IHtmlHelper, String)

Returns HTML markup for the expression, using an editor template. The template is found using the expression's ModelMetadata.

Editor(IHtmlHelper, String, Object) Editor(IHtmlHelper, String, Object) Editor(IHtmlHelper, String, Object)

Returns HTML markup for the expression, using an editor template and specified additional view data. The template is found using the expression's ModelMetadata.

Editor(IHtmlHelper, String, String) Editor(IHtmlHelper, String, String) Editor(IHtmlHelper, String, String)

Returns HTML markup for the expression, using an editor template. The template is found using the templateName or the expression's ModelMetadata.

Editor(IHtmlHelper, String, String, Object) Editor(IHtmlHelper, String, String, Object) Editor(IHtmlHelper, String, String, Object)

Returns HTML markup for the expression, using an editor template and specified additional view data. The template is found using the templateName or the expression's ModelMetadata.

Editor(IHtmlHelper, String, String, String) Editor(IHtmlHelper, String, String, String) Editor(IHtmlHelper, String, String, String)

Returns HTML markup for the expression, using an editor template and specified HTML field name. The template is found using the templateName or the expression's ModelMetadata.

EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>)

Returns HTML markup for the expression, using an editor template. The template is found using the expression's ModelMetadata.

EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object)

Returns HTML markup for the expression, using an editor template and specified additional view data. The template is found using the expression's ModelMetadata.

EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String) EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String) EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String)

Returns HTML markup for the expression, using an editor template. The template is found using the templateName or the expression's ModelMetadata.

EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, Object) EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, Object) EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, Object)

Returns HTML markup for the expression, using an editor template and specified additional view data. The template is found using the templateName or the expression's ModelMetadata.

EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, String) EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, String) EditorFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, String)

Returns HTML markup for the expression, using an editor template and specified HTML field name. The template is found using the templateName or the expression's ModelMetadata.

EditorForModel(IHtmlHelper) EditorForModel(IHtmlHelper) EditorForModel(IHtmlHelper)

Returns HTML markup for the current model, using an editor template. The template is found using the model's ModelMetadata.

EditorForModel(IHtmlHelper, Object) EditorForModel(IHtmlHelper, Object) EditorForModel(IHtmlHelper, Object)

Returns HTML markup for the current model, using an editor template and specified additional view data. The template is found using the model's ModelMetadata.

EditorForModel(IHtmlHelper, String) EditorForModel(IHtmlHelper, String) EditorForModel(IHtmlHelper, String)

Returns HTML markup for the current model, using an editor template. The template is found using the templateName or the model's ModelMetadata.

EditorForModel(IHtmlHelper, String, Object) EditorForModel(IHtmlHelper, String, Object) EditorForModel(IHtmlHelper, String, Object)

Returns HTML markup for the current model, using an editor template and specified additional view data. The template is found using the templateName or the model's ModelMetadata.

EditorForModel(IHtmlHelper, String, String) EditorForModel(IHtmlHelper, String, String) EditorForModel(IHtmlHelper, String, String)

Returns HTML markup for the current model, using an editor template and specified HTML field name. The template is found using the templateName or the model's ModelMetadata.

EditorForModel(IHtmlHelper, String, String, Object) EditorForModel(IHtmlHelper, String, String, Object) EditorForModel(IHtmlHelper, String, String, Object)

Returns HTML markup for the current model, using an editor template, specified HTML field name, and additional view data. The template is found using the templateName or the model's ModelMetadata.

BeginForm(IHtmlHelper) BeginForm(IHtmlHelper) BeginForm(IHtmlHelper)

Renders a <form> start tag to the response. The <form>'s action attribute value will match the current request.

BeginForm(IHtmlHelper, FormMethod) BeginForm(IHtmlHelper, FormMethod) BeginForm(IHtmlHelper, FormMethod)

Renders a <form> start tag to the response. When the user submits the form, the current action will process the request.

BeginForm(IHtmlHelper, FormMethod, Nullable<Boolean>, Object) BeginForm(IHtmlHelper, FormMethod, Nullable<Boolean>, Object) BeginForm(IHtmlHelper, FormMethod, Nullable<Boolean>, Object)

Renders a <form> start tag to the response. When the user submits the form, the current action will process the request.

BeginForm(IHtmlHelper, FormMethod, Object) BeginForm(IHtmlHelper, FormMethod, Object) BeginForm(IHtmlHelper, FormMethod, Object)

Renders a <form> start tag to the response. When the user submits the form, the current action will process the request.

BeginForm(IHtmlHelper, Nullable<Boolean>) BeginForm(IHtmlHelper, Nullable<Boolean>) BeginForm(IHtmlHelper, Nullable<Boolean>)

Renders a <form> start tag to the response. The <form>'s action attribute value will match the current request.

BeginForm(IHtmlHelper, Object) BeginForm(IHtmlHelper, Object) BeginForm(IHtmlHelper, Object)

Renders a <form> start tag to the response. When the user submits the form, the current action will process the request.

BeginForm(IHtmlHelper, String, String) BeginForm(IHtmlHelper, String, String) BeginForm(IHtmlHelper, String, String)

Renders a <form> start tag to the response. When the user submits the form, the action with name actionName will process the request.

BeginForm(IHtmlHelper, String, String, FormMethod) BeginForm(IHtmlHelper, String, String, FormMethod) BeginForm(IHtmlHelper, String, String, FormMethod)

Renders a <form> start tag to the response. When the user submits the form, the action with name actionName will process the request.

BeginForm(IHtmlHelper, String, String, FormMethod, Object) BeginForm(IHtmlHelper, String, String, FormMethod, Object) BeginForm(IHtmlHelper, String, String, FormMethod, Object)

Renders a <form> start tag to the response. When the user submits the form, the action with name actionName will process the request.

BeginForm(IHtmlHelper, String, String, Object) BeginForm(IHtmlHelper, String, String, Object) BeginForm(IHtmlHelper, String, String, Object)

Renders a <form> start tag to the response. When the user submits the form, the action with name actionName will process the request.

BeginForm(IHtmlHelper, String, String, Object, FormMethod) BeginForm(IHtmlHelper, String, String, Object, FormMethod) BeginForm(IHtmlHelper, String, String, Object, FormMethod)

Renders a <form> start tag to the response. When the user submits the form, the action with name actionName will process the request.

BeginRouteForm(IHtmlHelper, Object) BeginRouteForm(IHtmlHelper, Object) BeginRouteForm(IHtmlHelper, Object)

Renders a <form> start tag to the response. The first route that can provide a URL with the specified routeValues generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, Object, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, Object, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, Object, Nullable<Boolean>)

Renders a <form> start tag to the response. The first route that can provide a URL with the specified routeValues generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String) BeginRouteForm(IHtmlHelper, String) BeginRouteForm(IHtmlHelper, String)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String, FormMethod) BeginRouteForm(IHtmlHelper, String, FormMethod) BeginRouteForm(IHtmlHelper, String, FormMethod)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String, FormMethod, Object) BeginRouteForm(IHtmlHelper, String, FormMethod, Object) BeginRouteForm(IHtmlHelper, String, FormMethod, Object)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, String, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, String, Nullable<Boolean>)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String, Object) BeginRouteForm(IHtmlHelper, String, Object) BeginRouteForm(IHtmlHelper, String, Object)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String, Object, FormMethod) BeginRouteForm(IHtmlHelper, String, Object, FormMethod) BeginRouteForm(IHtmlHelper, String, Object, FormMethod)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

CheckBox(IHtmlHelper, String) CheckBox(IHtmlHelper, String) CheckBox(IHtmlHelper, String)

Returns an <input> element of type "checkbox" with value "true" and an <input> element of type "hidden" with value "false" for the specified expression. Adds a "checked" attribute to the "checkbox" element based on the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

CheckBox(IHtmlHelper, String, Boolean) CheckBox(IHtmlHelper, String, Boolean) CheckBox(IHtmlHelper, String, Boolean)

Returns an <input> element of type "checkbox" with value "true" and an <input> element of type "hidden" with value "false" for the specified expression. Adds a "checked" attribute to the "checkbox" element based on the first non-null value found in: the ModelState entry with full name, the isChecked parameter, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

CheckBox(IHtmlHelper, String, Object) CheckBox(IHtmlHelper, String, Object) CheckBox(IHtmlHelper, String, Object)

Returns an <input> element of type "checkbox" with value "true" and an <input> element of type "hidden" with value "false" for the specified expression. Adds a "checked" attribute to the "checkbox" element based on the first non-null value found in: the htmlAttributes dictionary entry with key "checked", the ModelState entry with full name, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

CheckBoxFor<TModel>(IHtmlHelper<TModel>, Expression<Func<TModel,Boolean>>) CheckBoxFor<TModel>(IHtmlHelper<TModel>, Expression<Func<TModel,Boolean>>) CheckBoxFor<TModel>(IHtmlHelper<TModel>, Expression<Func<TModel,Boolean>>)

Returns an <input> element of type "checkbox" with value "true" and an <input> element of type "hidden" with value "false" for the specified expression. Adds a "checked" attribute to the "checkbox" element based on the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

Hidden(IHtmlHelper, String) Hidden(IHtmlHelper, String) Hidden(IHtmlHelper, String)

Returns an <input> element of type "hidden" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

Hidden(IHtmlHelper, String, Object) Hidden(IHtmlHelper, String, Object) Hidden(IHtmlHelper, String, Object)

Returns an <input> element of type "hidden" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the ModelState entry with full name, the value parameter, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

HiddenFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) HiddenFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) HiddenFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>)

Returns an <input> element of type "hidden" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

Password(IHtmlHelper, String) Password(IHtmlHelper, String) Password(IHtmlHelper, String)

Returns an <input> element of type "password" for the specified expression. Does not add a "value" attribute.

Password(IHtmlHelper, String, Object) Password(IHtmlHelper, String, Object) Password(IHtmlHelper, String, Object)

Returns an <input> element of type "password" for the specified expression. Adds a "value" attribute containing the value parameter if that is non-null.

PasswordFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) PasswordFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) PasswordFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>)

Returns an <input> element of type "password" for the specified expression. Does not add a "value" attribute.

RadioButton(IHtmlHelper, String, Object) RadioButton(IHtmlHelper, String, Object) RadioButton(IHtmlHelper, String, Object)

Returns an <input> element of type "radio" for the specified expression. Adds a "value" attribute to the element containing the value parameter if that is non-null. Adds a "checked" attribute to the element if value matches the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

RadioButton(IHtmlHelper, String, Object, Boolean) RadioButton(IHtmlHelper, String, Object, Boolean) RadioButton(IHtmlHelper, String, Object, Boolean)

Returns an <input> element of type "radio" for the specified expression. Adds a "value" attribute to the element containing the value parameter if that is non-null. Adds a "checked" attribute to the element if value matches the first non-null value found in: the ModelState entry with full name, the isChecked parameter, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

RadioButton(IHtmlHelper, String, Object, Object) RadioButton(IHtmlHelper, String, Object, Object) RadioButton(IHtmlHelper, String, Object, Object)

Returns an <input> element of type "radio" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the value parameter, or the htmlAttributes dictionary entry with key "value". Adds a "checked" attribute to the element if value matches the first non-null value found in: the htmlAttributes dictionary entry with key "checked", the ModelState entry with full name, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

RadioButtonFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) RadioButtonFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) RadioButtonFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object)

Returns an <input> element of type "radio" for the specified expression. Adds a "value" attribute to the element containing the value parameter. Adds a "checked" attribute to the element if value matches the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

TextArea(IHtmlHelper, String) TextArea(IHtmlHelper, String) TextArea(IHtmlHelper, String)

Returns a <textarea> element for the specified expression. Adds content to the element body based on the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

TextArea(IHtmlHelper, String, Object) TextArea(IHtmlHelper, String, Object) TextArea(IHtmlHelper, String, Object)

Returns a <textarea> element for the specified expression. Adds content to the element body based on the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

TextArea(IHtmlHelper, String, String) TextArea(IHtmlHelper, String, String) TextArea(IHtmlHelper, String, String)

Returns a <textarea> element for the specified expression. Adds content to the element body based on the first non-null value found in: the ModelState entry with full name, the value parameter, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

TextArea(IHtmlHelper, String, String, Object) TextArea(IHtmlHelper, String, String, Object) TextArea(IHtmlHelper, String, String, Object)

Returns a <textarea> element for the specified expression. Adds content to the element body based on the first non-null value found in: the ModelState entry with full name, the value parameter, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

TextAreaFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) TextAreaFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) TextAreaFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>)

Returns a <textarea> element for the specified expression. Adds content to the element body based on the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

TextAreaFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) TextAreaFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) TextAreaFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object)

Returns a <textarea> element for the specified expression. Adds content to the element body based on the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

TextBox(IHtmlHelper, String) TextBox(IHtmlHelper, String) TextBox(IHtmlHelper, String)

Returns an <input> element of type "text" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

TextBox(IHtmlHelper, String, Object) TextBox(IHtmlHelper, String, Object) TextBox(IHtmlHelper, String, Object)

Returns an <input> element of type "text" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the ModelState entry with full name, the value parameter, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

TextBox(IHtmlHelper, String, Object, Object) TextBox(IHtmlHelper, String, Object, Object) TextBox(IHtmlHelper, String, Object, Object)

Returns an <input> element of type "text" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the ModelState entry with full name, the value parameter, the ViewData entry with full name, the expression evaluated against Model, or the htmlAttributes dictionary entry with key "value". See Name(String) for more information about a "full name".

TextBox(IHtmlHelper, String, Object, String) TextBox(IHtmlHelper, String, Object, String) TextBox(IHtmlHelper, String, Object, String)

Returns an <input> element of type "text" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the ModelState entry with full name, the value parameter, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

TextBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) TextBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) TextBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>)

Returns an <input> element of type "text" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

TextBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) TextBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) TextBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object)

Returns an <input> element of type "text" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the ModelState entry with full name, the expression evaluated against Model, or the htmlAttributes dictionary entry with key "value". See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

TextBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String) TextBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String) TextBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String)

Returns an <input> element of type "text" for the specified expression. Adds a "value" attribute to the element containing the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

Label(IHtmlHelper, String) Label(IHtmlHelper, String) Label(IHtmlHelper, String)

Returns a <label> element for the specified expression.

Label(IHtmlHelper, String, String) Label(IHtmlHelper, String, String) Label(IHtmlHelper, String, String)

Returns a <label> element for the specified expression.

LabelFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) LabelFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) LabelFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>)

Returns a <label> element for the specified expression.

LabelFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) LabelFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object) LabelFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, Object)

Returns a <label> element for the specified expression.

LabelFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String) LabelFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String) LabelFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String)

Returns a <label> element for the specified expression.

LabelForModel(IHtmlHelper) LabelForModel(IHtmlHelper) LabelForModel(IHtmlHelper)

Returns a <label> element for the current model.

LabelForModel(IHtmlHelper, Object) LabelForModel(IHtmlHelper, Object) LabelForModel(IHtmlHelper, Object)

Returns a <label> element for the current model.

LabelForModel(IHtmlHelper, String) LabelForModel(IHtmlHelper, String) LabelForModel(IHtmlHelper, String)

Returns a <label> element for the current model.

LabelForModel(IHtmlHelper, String, Object) LabelForModel(IHtmlHelper, String, Object) LabelForModel(IHtmlHelper, String, Object)

Returns a <label> element for the current model.

ActionLink(IHtmlHelper, String, String) ActionLink(IHtmlHelper, String, String) ActionLink(IHtmlHelper, String, String)

Returns an anchor (<a>) element that contains a URL path to the specified action.

ActionLink(IHtmlHelper, String, String, Object) ActionLink(IHtmlHelper, String, String, Object) ActionLink(IHtmlHelper, String, String, Object)

Returns an anchor (<a>) element that contains a URL path to the specified action.

ActionLink(IHtmlHelper, String, String, Object, Object) ActionLink(IHtmlHelper, String, String, Object, Object) ActionLink(IHtmlHelper, String, String, Object, Object)

Returns an anchor (<a>) element that contains a URL path to the specified action.

ActionLink(IHtmlHelper, String, String, String) ActionLink(IHtmlHelper, String, String, String) ActionLink(IHtmlHelper, String, String, String)

Returns an anchor (<a>) element that contains a URL path to the specified action.

ActionLink(IHtmlHelper, String, String, String, Object) ActionLink(IHtmlHelper, String, String, String, Object) ActionLink(IHtmlHelper, String, String, String, Object)

Returns an anchor (<a>) element that contains a URL path to the specified action.

ActionLink(IHtmlHelper, String, String, String, Object, Object) ActionLink(IHtmlHelper, String, String, String, Object, Object) ActionLink(IHtmlHelper, String, String, String, Object, Object)

Returns an anchor (<a>) element that contains a URL path to the specified action.

RouteLink(IHtmlHelper, String, Object) RouteLink(IHtmlHelper, String, Object) RouteLink(IHtmlHelper, String, Object)

Returns an anchor (<a>) element that contains a URL path to the specified route.

RouteLink(IHtmlHelper, String, Object, Object) RouteLink(IHtmlHelper, String, Object, Object) RouteLink(IHtmlHelper, String, Object, Object)

Returns an anchor (<a>) element that contains a URL path to the specified route.

RouteLink(IHtmlHelper, String, String) RouteLink(IHtmlHelper, String, String) RouteLink(IHtmlHelper, String, String)

Returns an anchor (<a>) element that contains a URL path to the specified route.

RouteLink(IHtmlHelper, String, String, Object) RouteLink(IHtmlHelper, String, String, Object) RouteLink(IHtmlHelper, String, String, Object)

Returns an anchor (<a>) element that contains a URL path to the specified route.

RouteLink(IHtmlHelper, String, String, Object, Object) RouteLink(IHtmlHelper, String, String, Object, Object) RouteLink(IHtmlHelper, String, String, Object, Object)

Returns an anchor (<a>) element that contains a URL path to the specified route.

IdForModel(IHtmlHelper) IdForModel(IHtmlHelper) IdForModel(IHtmlHelper)

Returns the HTML element Id for the current model.

NameForModel(IHtmlHelper) NameForModel(IHtmlHelper) NameForModel(IHtmlHelper)

Returns the full HTML element name for the current model. Uses HtmlFieldPrefix (if non-empty) to reflect relationship between current Model and the top-level view's model.

Partial(IHtmlHelper, String) Partial(IHtmlHelper, String) Partial(IHtmlHelper, String)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String, ViewDataDictionary) Partial(IHtmlHelper, String, ViewDataDictionary) Partial(IHtmlHelper, String, ViewDataDictionary)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String, Object) Partial(IHtmlHelper, String, Object) Partial(IHtmlHelper, String, Object)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String, Object, ViewDataDictionary) Partial(IHtmlHelper, String, Object, ViewDataDictionary) Partial(IHtmlHelper, String, Object, ViewDataDictionary)

Returns HTML markup for the specified partial view.

PartialAsync(IHtmlHelper, String) PartialAsync(IHtmlHelper, String) PartialAsync(IHtmlHelper, String)

Returns HTML markup for the specified partial view.

PartialAsync(IHtmlHelper, String, ViewDataDictionary) PartialAsync(IHtmlHelper, String, ViewDataDictionary) PartialAsync(IHtmlHelper, String, ViewDataDictionary)

Returns HTML markup for the specified partial view.

PartialAsync(IHtmlHelper, String, Object) PartialAsync(IHtmlHelper, String, Object) PartialAsync(IHtmlHelper, String, Object)

Returns HTML markup for the specified partial view.

RenderPartial(IHtmlHelper, String) RenderPartial(IHtmlHelper, String) RenderPartial(IHtmlHelper, String)

Renders HTML markup for the specified partial view.

RenderPartial(IHtmlHelper, String, ViewDataDictionary) RenderPartial(IHtmlHelper, String, ViewDataDictionary) RenderPartial(IHtmlHelper, String, ViewDataDictionary)

Renders HTML markup for the specified partial view.

RenderPartial(IHtmlHelper, String, Object) RenderPartial(IHtmlHelper, String, Object) RenderPartial(IHtmlHelper, String, Object)

Renders HTML markup for the specified partial view.

RenderPartial(IHtmlHelper, String, Object, ViewDataDictionary) RenderPartial(IHtmlHelper, String, Object, ViewDataDictionary) RenderPartial(IHtmlHelper, String, Object, ViewDataDictionary)

Renders HTML markup for the specified partial view.

RenderPartialAsync(IHtmlHelper, String) RenderPartialAsync(IHtmlHelper, String) RenderPartialAsync(IHtmlHelper, String)

Renders HTML markup for the specified partial view.

RenderPartialAsync(IHtmlHelper, String, ViewDataDictionary) RenderPartialAsync(IHtmlHelper, String, ViewDataDictionary) RenderPartialAsync(IHtmlHelper, String, ViewDataDictionary)

Renders HTML markup for the specified partial view.

RenderPartialAsync(IHtmlHelper, String, Object) RenderPartialAsync(IHtmlHelper, String, Object) RenderPartialAsync(IHtmlHelper, String, Object)

Renders HTML markup for the specified partial view.

DropDownList(IHtmlHelper, String) DropDownList(IHtmlHelper, String) DropDownList(IHtmlHelper, String)

Returns a single-selection HTML <select> element for the expression. Adds <option> elements based on the ViewData entry with full name. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

DropDownList(IHtmlHelper, String, IEnumerable<SelectListItem>) DropDownList(IHtmlHelper, String, IEnumerable<SelectListItem>) DropDownList(IHtmlHelper, String, IEnumerable<SelectListItem>)

Returns a single-selection HTML <select> element for the expression. Adds <option> elements based on selectList. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name (unless used instead of selectList), or the expression evaluated against Model. See Name(String) for more information about a "full name".

DropDownList(IHtmlHelper, String, IEnumerable<SelectListItem>, Object) DropDownList(IHtmlHelper, String, IEnumerable<SelectListItem>, Object) DropDownList(IHtmlHelper, String, IEnumerable<SelectListItem>, Object)

Returns a single-selection HTML <select> element for the expression. Adds <option> elements based on selectList. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name (unless used instead of selectList), or the expression evaluated against Model. See Name(String) for more information about a "full name".

DropDownList(IHtmlHelper, String, IEnumerable<SelectListItem>, String) DropDownList(IHtmlHelper, String, IEnumerable<SelectListItem>, String) DropDownList(IHtmlHelper, String, IEnumerable<SelectListItem>, String)

Returns a single-selection HTML <select> element for the expression. Adds <option> elements based on optionLabel and selectList. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name (unless used instead of selectList), or the expression evaluated against Model. See Name(String) for more information about a "full name".

DropDownList(IHtmlHelper, String, String) DropDownList(IHtmlHelper, String, String) DropDownList(IHtmlHelper, String, String)

Returns a single-selection HTML <select> element for the expression. Adds <option> elements based on optionLabel and the ViewData entry with full name. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

DropDownListFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>) DropDownListFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>) DropDownListFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>)

Returns a single-selection HTML <select> element for the expression. Adds <option> elements based on selectList. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

DropDownListFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, Object) DropDownListFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, Object) DropDownListFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, Object)

Returns a single-selection HTML <select> element for the expression. Adds <option> elements based on selectList. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

DropDownListFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, String) DropDownListFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, String) DropDownListFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>, String)

Returns a single-selection HTML <select> element for the expression. Adds <option> elements based on optionLabel and selectList. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

ListBox(IHtmlHelper, String) ListBox(IHtmlHelper, String) ListBox(IHtmlHelper, String)

Returns a multi-selection <select> element for the expression. Adds <option> elements based on the ViewData entry with full name. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

ListBox(IHtmlHelper, String, IEnumerable<SelectListItem>) ListBox(IHtmlHelper, String, IEnumerable<SelectListItem>) ListBox(IHtmlHelper, String, IEnumerable<SelectListItem>)

Returns a multi-selection <select> element for the expression. Adds <option> elements based on selectList. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name (unless used instead of selectList), or the expression evaluated against Model. See Name(String) for more information about a "full name".

ListBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>) ListBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>) ListBoxFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, IEnumerable<SelectListItem>)

Returns a multi-selection <select> element for the expression. Adds <option> elements based on selectList. Adds a "selected" attribute to an <option> if its Value (if non-null) or Text matches the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

ValidationMessage(IHtmlHelper, String) ValidationMessage(IHtmlHelper, String) ValidationMessage(IHtmlHelper, String)

Returns the validation message if an error exists in the ModelStateDictionary object for the specified expression.

ValidationMessage(IHtmlHelper, String, Object) ValidationMessage(IHtmlHelper, String, Object) ValidationMessage(IHtmlHelper, String, Object)

Returns the validation message if an error exists in the ModelStateDictionary object for the specified expression.

ValidationMessage(IHtmlHelper, String, String) ValidationMessage(IHtmlHelper, String, String) ValidationMessage(IHtmlHelper, String, String)

Returns the validation message if an error exists in the ModelStateDictionary object for the specified expression.

ValidationMessage(IHtmlHelper, String, String, Object) ValidationMessage(IHtmlHelper, String, String, Object) ValidationMessage(IHtmlHelper, String, String, Object)

Returns the validation message if an error exists in the ModelStateDictionary object for the specified expression.

ValidationMessage(IHtmlHelper, String, String, String) ValidationMessage(IHtmlHelper, String, String, String) ValidationMessage(IHtmlHelper, String, String, String)

Returns the validation message if an error exists in the ModelStateDictionary object for the specified expression.

ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>)

Returns the validation message if an error exists in the ModelStateDictionary object for the specified expression.

ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String) ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String) ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String)

Returns the validation message if an error exists in the ModelStateDictionary object for the specified expression.

ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, Object) ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, Object) ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, Object)

Returns the validation message if an error exists in the ModelStateDictionary object for the specified expression.

ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, String) ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, String) ValidationMessageFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>, String, String)

Returns the validation message if an error exists in the ModelStateDictionary object for the specified expression.

ValidationSummary(IHtmlHelper) ValidationSummary(IHtmlHelper) ValidationSummary(IHtmlHelper)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, Boolean) ValidationSummary(IHtmlHelper, Boolean) ValidationSummary(IHtmlHelper, Boolean)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, Boolean, String) ValidationSummary(IHtmlHelper, Boolean, String) ValidationSummary(IHtmlHelper, Boolean, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, Boolean, String, Object) ValidationSummary(IHtmlHelper, Boolean, String, Object) ValidationSummary(IHtmlHelper, Boolean, String, Object)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, Boolean, String, String) ValidationSummary(IHtmlHelper, Boolean, String, String) ValidationSummary(IHtmlHelper, Boolean, String, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, String) ValidationSummary(IHtmlHelper, String) ValidationSummary(IHtmlHelper, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, String, Object) ValidationSummary(IHtmlHelper, String, Object) ValidationSummary(IHtmlHelper, String, Object)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, String, Object, String) ValidationSummary(IHtmlHelper, String, Object, String) ValidationSummary(IHtmlHelper, String, Object, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

ValidationSummary(IHtmlHelper, String, String) ValidationSummary(IHtmlHelper, String, String) ValidationSummary(IHtmlHelper, String, String)

Returns an unordered list (<ul> element) of validation messages that are in the ModelStateDictionary object.

Value(IHtmlHelper, String) Value(IHtmlHelper, String) Value(IHtmlHelper, String)

Returns the formatted value for the specified expression. Specifically, returns the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

ValueFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) ValueFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>) ValueFor<TModel,TResult>(IHtmlHelper<TModel>, Expression<Func<TModel,TResult>>)

Returns the formatted value for the specified expression. Specifically, returns the first non-null value found in: the ModelState entry with full name, or the expression evaluated against Model. See NameFor<TResult>(Expression<Func<TModel,TResult>>) for more information about a "full name".

ValueForModel(IHtmlHelper) ValueForModel(IHtmlHelper) ValueForModel(IHtmlHelper)

Returns the formatted value for the current model. Specifically, returns the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name, or the Model. See Name(String) for more information about a "full name".

ValueForModel(IHtmlHelper, String) ValueForModel(IHtmlHelper, String) ValueForModel(IHtmlHelper, String)

Returns the formatted value for the current model. Specifically, returns the first non-null value found in: the ModelState entry with full name, the ViewData entry with full name, or the Model. See Name(String) for more information about a "full name".

Applies to