Class ValueExtensions
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
public static class ValueExtensions
- Inheritance
-
ValueExtensions
- Inherited Members
Methods
Value(HtmlHelper, string)
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
public static MvcHtmlString Value(this HtmlHelper html, string name)
Parameters
html
HtmlHelperThe HTML helper instance that this method extends.
name
stringThe name of the model.
Returns
- MvcHtmlString
The HTML markup for the value.
Value(HtmlHelper, string, string)
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
public static MvcHtmlString Value(this HtmlHelper html, string name, string format)
Parameters
html
HtmlHelperThe HTML helper instance that this method extends.
name
stringThe name of the model.
format
stringThe format string.
Returns
- MvcHtmlString
The HTML markup for the value.
ValueForModel(HtmlHelper)
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
public static MvcHtmlString ValueForModel(this HtmlHelper html)
Parameters
html
HtmlHelperThe HTML helper instance that this method extends.
Returns
- MvcHtmlString
The HTML markup for the value.
ValueForModel(HtmlHelper, string)
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
public static MvcHtmlString ValueForModel(this HtmlHelper html, string format)
Parameters
html
HtmlHelperThe HTML helper instance that this method extends.
format
stringThe format string.
Returns
- MvcHtmlString
The HTML markup for the value.
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.
public static MvcHtmlString ValueFor<TModel, TProperty>(this HtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression)
Parameters
html
HtmlHelper<TModel>The HTML helper instance that this method extends.
expression
Expression<Func<TModel, TProperty>>An expression that identifies the object that contains the properties to expose.
Returns
- MvcHtmlString
The HTML markup for the value.
Type Parameters
TModel
The model.
TProperty
The property.
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.
public static MvcHtmlString ValueFor<TModel, TProperty>(this HtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, string format)
Parameters
html
HtmlHelper<TModel>The HTML helper instance that this method extends.
expression
Expression<Func<TModel, TProperty>>An expression that identifies the object that contains the properties to expose.
format
stringThe format string.
Returns
- MvcHtmlString
The HTML markup for the value.
Type Parameters
TModel
The model.
TProperty
The property.