HtmlHelperNameExtensions HtmlHelperNameExtensions HtmlHelperNameExtensions Class

Definition

Name-related extensions for IHtmlHelper.

public static class HtmlHelperNameExtensions
type HtmlHelperNameExtensions = class
Public Module HtmlHelperNameExtensions
Inheritance
HtmlHelperNameExtensionsHtmlHelperNameExtensionsHtmlHelperNameExtensions

Methods

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.

Applies to