ValueExtensions.ValueForModel Method

Definition

Overloads

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.

ValueForModel(HtmlHelper)

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

public static System.Web.Mvc.MvcHtmlString ValueForModel (this System.Web.Mvc.HtmlHelper html);
static member ValueForModel : System.Web.Mvc.HtmlHelper -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValueForModel (html As HtmlHelper) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

Returns

The HTML markup for the value.

Applies to

ValueForModel(HtmlHelper, String)

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

public static System.Web.Mvc.MvcHtmlString ValueForModel (this System.Web.Mvc.HtmlHelper html, string format);
static member ValueForModel : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValueForModel (html As HtmlHelper, format As String) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

format
String

The format string.

Returns

The HTML markup for the value.

Applies to