Class HtmlDisplayTextExtensions
Provides a way to render object values as HTML.
Inheritance
System.Object
HtmlDisplayTextExtensions
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class HtmlDisplayTextExtensions : object
Methods
| Improve this Doc View SourceDisplayText(DnnHtmlHelper, String)
Returns HTML markup for each property in the object that is represented by the specified expression.
Declaration
public static MvcHtmlString DisplayText(this DnnHtmlHelper html, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | name | 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. |
DisplayTextFor<TModel, TResult>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TResult>>)
Returns HTML markup for each property in the object that is represented by the specified expression.
Declaration
public static MvcHtmlString DisplayTextFor<TModel, TResult>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TResult>> expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TResult>> | expression | An expression that identifies the object that contains the properties to display. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The HTML markup for each property. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TResult | The type of the result. |