Class HtmlDisplayExtensions
Represents support for rendering object values as HTML.
Inheritance
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class HtmlDisplayExtensions : object
Methods
| Improve this Doc View SourceDisplay(DnnHtmlHelper, String, Object)
Returns HTML markup for each property in the object that is represented by a string expression, using additional view data.
Declaration
public static MvcHtmlString Display(this DnnHtmlHelper html, string expression, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Display(DnnHtmlHelper, String, String, Object)
Returns HTML markup for each property in the object that is represented by the expression, using the specified template and additional view data.
Declaration
public static MvcHtmlString Display(this DnnHtmlHelper html, string expression, string templateName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template that is used to render the object. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Display(DnnHtmlHelper, String, String, String, Object)
Returns HTML markup for each property in the object that is represented by the expression, using the specified template, HTML field ID, and additional view data.
Declaration
public static MvcHtmlString Display(this DnnHtmlHelper html, string expression, string templateName, string htmlFieldName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template that is used to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Display(DnnHtmlHelper, String, String, String)
Returns HTML markup for each property in the object that is represented by the expression, using the specified template and an HTML field ID.
Declaration
public static MvcHtmlString Display(this DnnHtmlHelper html, string expression, string templateName, string htmlFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template that is used to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Display(DnnHtmlHelper, String, String)
Returns HTML markup for each property in the object that is represented by the expression, using the specified template.
Declaration
public static MvcHtmlString Display(this DnnHtmlHelper html, string expression, string templateName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template that is used to render the object. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Display(DnnHtmlHelper, String)
Returns HTML markup for each property in the object that is represented by a string expression.
Declaration
public static MvcHtmlString Display(this DnnHtmlHelper html, string expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
DisplayFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, Object)
Returns a string that contains each property value in the object that is represented by the specified expression, using additional view data.
Declaration
public static MvcHtmlString DisplayFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
DisplayFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, Object)
Returns a string that contains each property value in the object that is represented by the specified expression, using the specified template and additional view data.
Declaration
public static MvcHtmlString DisplayFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template that is used to render the object. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
DisplayFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, String, Object)
Returns HTML markup for each property in the object that is represented by the specified expression, using the template, an HTML field ID, and additional view data.
Declaration
public static MvcHtmlString DisplayFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName, string htmlFieldName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template that is used to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
DisplayFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, String)
Returns HTML markup for each property in the object that is represented by the System.Linq.Expressions.Expression, using the specified template and an HTML field ID.
Declaration
public static MvcHtmlString DisplayFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName, string htmlFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template that is used to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
DisplayFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String)
Returns a string that contains each property value in the object that is represented by the System.Linq.Expressions.Expression, using the specified template.
Declaration
public static MvcHtmlString DisplayFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template that is used to render the object. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
DisplayFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>)
Returns HTML markup for each property in the object that is represented by the System.Linq.Expressions.Expression expression.
Declaration
public static MvcHtmlString DisplayFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
DisplayForModel(DnnHtmlHelper, Object)
Returns HTML markup for each property in the model, using additional view data.
Declaration
public static MvcHtmlString DisplayForModel(this DnnHtmlHelper html, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the model. |
DisplayForModel(DnnHtmlHelper, String, Object)
Returns HTML markup for each property in the model, using the specified template and additional view data.
Declaration
public static MvcHtmlString DisplayForModel(this DnnHtmlHelper html, string templateName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | templateName | The name of the template that is used to render the object. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the model. |
DisplayForModel(DnnHtmlHelper, String, String, Object)
Returns HTML markup for each property in the model, using the specified template, an HTML field ID, and additional view data.
Declaration
public static MvcHtmlString DisplayForModel(this DnnHtmlHelper html, string templateName, string htmlFieldName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | templateName | The name of the template that is used to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the model. |
DisplayForModel(DnnHtmlHelper, String, String)
Returns HTML markup for each property in the model using the specified template and HTML field ID.
Declaration
public static MvcHtmlString DisplayForModel(this DnnHtmlHelper html, string templateName, string htmlFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | templateName | The name of the template that is used to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the model. |
DisplayForModel(DnnHtmlHelper, String)
Returns HTML markup for each property in the model using the specified template.
Declaration
public static MvcHtmlString DisplayForModel(this DnnHtmlHelper html, string templateName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | templateName | The name of the template that is used to render the object. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property in the model. |
DisplayForModel(DnnHtmlHelper)
Returns HTML markup for each property in the model.
Declaration
public static MvcHtmlString DisplayForModel(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 each property in the model. |