RenderPartialExtensions.RenderPartial RenderPartialExtensions.RenderPartial Method

Definition

Overloads

RenderPartial(HtmlHelper, String) RenderPartial(HtmlHelper, String)

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

RenderPartial(HtmlHelper, String, Object) RenderPartial(HtmlHelper, String, Object)

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

RenderPartial(HtmlHelper, String, ViewDataDictionary) RenderPartial(HtmlHelper, String, ViewDataDictionary)

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

RenderPartial(HtmlHelper, String, Object, ViewDataDictionary) RenderPartial(HtmlHelper, String, Object, ViewDataDictionary)

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

RenderPartial(HtmlHelper, String) RenderPartial(HtmlHelper, String)

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

public static void RenderPartial (this System.Web.Mvc.HtmlHelper htmlHelper, string partialViewName);
static member RenderPartial : System.Web.Mvc.HtmlHelper * string -> unit
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper.

partialViewName
String String

The name of the partial view

RenderPartial(HtmlHelper, String, Object) RenderPartial(HtmlHelper, String, Object)

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

public static void RenderPartial (this System.Web.Mvc.HtmlHelper htmlHelper, string partialViewName, object model);
static member RenderPartial : System.Web.Mvc.HtmlHelper * string * obj -> unit
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper.

partialViewName
String String

The name of the partial view.

model
Object Object

The model.

RenderPartial(HtmlHelper, String, ViewDataDictionary) RenderPartial(HtmlHelper, String, ViewDataDictionary)

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

public static void RenderPartial (this System.Web.Mvc.HtmlHelper htmlHelper, string partialViewName, System.Web.Mvc.ViewDataDictionary viewData);
static member RenderPartial : System.Web.Mvc.HtmlHelper * string * System.Web.Mvc.ViewDataDictionary -> unit
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper.

partialViewName
String String

The name of the partial view.

viewData
ViewDataDictionary ViewDataDictionary

The view data.

RenderPartial(HtmlHelper, String, Object, ViewDataDictionary) RenderPartial(HtmlHelper, String, Object, ViewDataDictionary)

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

public static void RenderPartial (this System.Web.Mvc.HtmlHelper htmlHelper, string partialViewName, object model, System.Web.Mvc.ViewDataDictionary viewData);
static member RenderPartial : System.Web.Mvc.HtmlHelper * string * obj * System.Web.Mvc.ViewDataDictionary -> unit
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper.

partialViewName
String String

The name of the partial view.

model
Object Object

The model for the partial view.

viewData
ViewDataDictionary ViewDataDictionary

The view data for the partial view.

Applies to