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
htmlHtmlHelperThe HTML helper instance that this method extends.
namestringThe 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
htmlHtmlHelperThe HTML helper instance that this method extends.
namestringThe name of the model.
formatstringThe 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
htmlHtmlHelperThe 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
htmlHtmlHelperThe HTML helper instance that this method extends.
formatstringThe 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
htmlHtmlHelper<TModel>The HTML helper instance that this method extends.
expressionExpression<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
TModelThe model.
TPropertyThe 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
htmlHtmlHelper<TModel>The HTML helper instance that this method extends.
expressionExpression<Func<TModel, TProperty>>An expression that identifies the object that contains the properties to expose.
formatstringThe format string.
Returns
- MvcHtmlString
The HTML markup for the value.
Type Parameters
TModelThe model.
TPropertyThe property.