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

Class HtmlPartialExtensions

Represents the functionality to render a partial view as an HTML-encoded string.

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

Methods

| Improve this Doc View Source

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

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

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