ValueExtensions.Value Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Value(HtmlHelper, String) |
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. |
Value(HtmlHelper, String, String) |
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates. |
Value(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 Value (this System.Web.Mvc.HtmlHelper html, string name);
static member Value : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Value (html As HtmlHelper, name As String) As MvcHtmlString
Parameters
- html
- HtmlHelper
The HTML helper instance that this method extends.
- name
- String
The name of the model.
Returns
The HTML markup for the value.
Applies to
Value(HtmlHelper, String, 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 Value (this System.Web.Mvc.HtmlHelper html, string name, string format);
static member Value : System.Web.Mvc.HtmlHelper * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Value (html As HtmlHelper, name As String, format As String) As MvcHtmlString
Parameters
- html
- HtmlHelper
The HTML helper instance that this method extends.
- name
- String
The name of the model.
- format
- String
The format string.
Returns
The HTML markup for the value.