Class HtmlPartialExtensions
Represents the functionality to render a partial view as an HTML-encoded string.
Inheritance
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class HtmlPartialExtensions : object
Methods
| Improve this Doc View SourcePartial(DnnHtmlHelper, String, Object, ViewDataDictionary)
Renders the specified partial view as an HTML-encoded string.
Declaration
public static MvcHtmlString Partial(this DnnHtmlHelper html, string partialViewName, object model, ViewDataDictionary viewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | partialViewName | The name of the partial view. |
| System.Object | model | The model for the partial view. |
| ViewDataDictionary | viewData | The view data dictionary for the partial view. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The partial view that is rendered as an HTML-encoded string. |
Partial(DnnHtmlHelper, String, Object)
Renders the specified partial view as an HTML-encoded string.
Declaration
public static MvcHtmlString Partial(this DnnHtmlHelper html, string partialViewName, object model)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | partialViewName | The name of the partial view to render. |
| System.Object | model | The model for the partial view. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The partial view that is rendered as an HTML-encoded string. |
Partial(DnnHtmlHelper, String, ViewDataDictionary)
Renders the specified partial view as an HTML-encoded string.
Declaration
public static MvcHtmlString Partial(this DnnHtmlHelper html, string partialViewName, ViewDataDictionary viewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | partialViewName | The name of the partial view to render. |
| ViewDataDictionary | viewData | The view data dictionary for the partial view. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The partial view that is rendered as an HTML-encoded string. |
Partial(DnnHtmlHelper, String)
Renders the specified partial view as an HTML-encoded string.
Declaration
public static MvcHtmlString Partial(this DnnHtmlHelper html, string partialViewName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | partialViewName | The name of the partial view to render. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | The partial view that is rendered as an HTML-encoded string. |