RenderPartialExtensions Class

 

Provides support for rendering a partial view.

Namespace:   System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

System.Object
  System.Web.Mvc.Html.RenderPartialExtensions

No code example is currently available or this language may not be supported.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticRenderPartial(HtmlHelper, String)

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

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

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

System_CAPS_pubmethodSystem_CAPS_staticRenderPartial(HtmlHelper, String, ViewDataDictionary)

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

The RenderPartialExtensions class contains methods that extend the HtmlHelper class. The RenderPartial method renders an ASP.NET user control (.ascx file) as a partial view.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: