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

Class HtmlRenderPartialExtensions

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

Methods

| Improve this Doc View Source

RenderPartial(DnnHtmlHelper, Object, String)

Renders the specified partial view, passing it a copy of the current System.Web.Mvc.ViewDataDictionary object, but with the Model property set to the specified model.

Declaration
public static void RenderPartial(this DnnHtmlHelper html, object model, string partialViewName)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper.

System.Object model

The model.

System.String partialViewName

The name of the partial view.

| Improve this Doc View Source

RenderPartial(DnnHtmlHelper, String, Object, ViewDataDictionary)

Renders the specified partial view, replacing the partial view's ViewData property with the specified System.Web.Mvc.ViewDataDictionary object and setting the Model property of the view data to the specified model.

Declaration
public static void RenderPartial(this DnnHtmlHelper html, string partialViewName, object model, ViewDataDictionary viewData)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper.

System.String partialViewName

The name of the partial view.

System.Object model

The model for the partial view.

ViewDataDictionary viewData

The view data for the partial view.

| Improve this Doc View Source

RenderPartial(DnnHtmlHelper, String, ViewDataDictionary)

Renders the specified partial view, replacing its ViewData property with the specified System.Web.Mvc.ViewDataDictionary object.

Declaration
public static void RenderPartial(this DnnHtmlHelper html, string partialViewName, ViewDataDictionary viewData)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper.

System.String partialViewName

The name of the partial view.

ViewDataDictionary viewData

The view data.

| Improve this Doc View Source

RenderPartial(DnnHtmlHelper, String)

Renders the specified partial view by using the specified HTML helper.

Declaration
public static void RenderPartial(this DnnHtmlHelper html, string partialViewName)
Parameters
Type Name Description
DnnHtmlHelper html

The HTML helper.

System.String partialViewName

The name of the partial view.

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