Class HtmlValueExtensions
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
Inheritance
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class HtmlValueExtensions : object
Methods
| Improve this Doc View SourceValue(DnnHtmlHelper, String, String)
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
Declaration
public static MvcHtmlString Value(this DnnHtmlHelper html, string name, string format)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | name | The name of the model. |
| System.String | format | The format string. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for the value. |
Value(DnnHtmlHelper, String)
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
Declaration
public static MvcHtmlString Value(this DnnHtmlHelper html, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | name | The name of the model. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for the value. |
ValueFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String)
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
Declaration
public static MvcHtmlString ValueFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, string format)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TProperty>> | expression | An expression that identifies the object that contains the properties to expose. |
| System.String | format | The format string. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for the value. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The model. |
| TProperty | The property. |
ValueFor<TModel, TProperty>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TProperty>>)
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
Declaration
public static MvcHtmlString ValueFor<TModel, TProperty>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TProperty>> | expression | An expression that identifies the object that contains the properties to expose. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for the value. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The model. |
| TProperty | The property. |
ValueForModel(DnnHtmlHelper, String)
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
Declaration
public static MvcHtmlString ValueForModel(this DnnHtmlHelper html, string format)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | format | The format string. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for the value. |
ValueForModel(DnnHtmlHelper)
Provides a mechanism to create custom HTML markup compatible with the ASP.NET MVC model binders and templates.
Declaration
public static MvcHtmlString ValueForModel(this DnnHtmlHelper html)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for the value. |