ValueExtensions::Value 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_staticValue(HtmlHelper^, String^)

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

System_CAPS_pubmethodSystem_CAPS_staticValue(HtmlHelper^, String^, String^)

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

Return to top

ValueExtensions::Value Method (HtmlHelper^, String^)

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

public:
[ExtensionAttribute]
static MvcHtmlString^ Value(
	HtmlHelper^ html,
	String^ name
)

Parameters

html
Type: System.Web.Mvc::HtmlHelper^

The HTML helper instance that this method extends.

name
Type: System::String^

The name of the model.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

The HTML markup for the value.

Return to top

ValueExtensions::Value Method (HtmlHelper^, String^, String^)

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

public:
[ExtensionAttribute]
static MvcHtmlString^ Value(
	HtmlHelper^ html,
	String^ name,
	String^ format
)

Parameters

html
Type: System.Web.Mvc::HtmlHelper^

The HTML helper instance that this method extends.

name
Type: System::String^

The name of the model.

format
Type: System::String^

The format string.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

The HTML markup for the value.

Return to top
Show: