Dela via


HtmlHelperNameExtensions Class

Definition

Name-related extensions for IHtmlHelper.

public ref class HtmlHelperNameExtensions abstract sealed
public static class HtmlHelperNameExtensions
type HtmlHelperNameExtensions = class
Public Module HtmlHelperNameExtensions
Inheritance
HtmlHelperNameExtensions

Methods

IdForModel(IHtmlHelper)

Returns the HTML element Id for the current model.

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