Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

NameExtensions Class

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

System.Object
  System.Web.Mvc.Html.NameExtensions

Namespace:  System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public static class NameExtensions

The NameExtensions type exposes the following members.

  NameDescription
Public methodStatic memberIdGets the ID of the HtmlHelper string.
Public methodStatic memberIdFor<TModel, TProperty> Gets the ID of the HtmlHelper<TModel> string
Public methodStatic memberIdForModelGets the ID of the HtmlHelper string.
Public methodStatic memberNameGets the full HTML field name for the object that is represented by the expression.
Public methodStatic memberNameFor<TModel, TProperty>Gets the full HTML field name for the object that is represented by the expression.
Public methodStatic memberNameForModelGets the full HTML field name for the object that is represented by the expression.
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.