ValueExtensions.ValueForModel Method

 

Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.

Namespace:   System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticValueForModel(HtmlHelper)

Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.

System_CAPS_pubmethodSystem_CAPS_staticValueForModel(HtmlHelper, String)

Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.

Return to top

ValueExtensions.ValueForModel Method (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
Type: System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

Return Value

Type: System.Web.Mvc.MvcHtmlString

The HTML markup for the value.

Return to top

ValueExtensions.ValueForModel Method (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
Type: System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

format
Type: System.String

The format string.

Return Value

Type: System.Web.Mvc.MvcHtmlString

The HTML markup for the value.

Return to top
Show: