• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class HtmlValueExtensions

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

Inheritance
System.Object
HtmlValueExtensions
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class HtmlValueExtensions : object

Methods

| Improve this Doc View Source

Value(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • View Source
Back to top by the community, for the community... #DNNCMS