ValueExtensions Class
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Value(HtmlHelper, String) | Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. |
![]() ![]() | Value(HtmlHelper, String, String) | Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. |
![]() ![]() | ValueFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>) | Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. |
![]() ![]() | ValueFor<TModel, TProperty>(HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String) | Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. |
![]() ![]() | ValueForModel(HtmlHelper) | Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. |
![]() ![]() | ValueForModel(HtmlHelper, String) | Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. |
The following code example shows how to create custom helper.
@helper TextBoxFor(Expression<Func<object, TProperty>> expression) {
<input type="text" value="@Html.ValueFor(expression)"
name="@Html.NameFor(expression)">
}
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg?cs-save-lang=1&cs-lang=csharp)
.jpeg?cs-save-lang=1&cs-lang=csharp)