/// <summary> /// Renders the partial view with the specified name. /// </summary> /// <param name="htmlHelper">The HTML helper.</param> /// <param name="partialViewName">Name of the partial view.</param> /// <param name="viewData">The view data.</param> /// <returns> /// Rendered partial view. /// </returns> public static System.Web.Mvc.MvcHtmlString Partial(this HtmlHelper htmlHelper, string partialViewName, ViewDataDictionary viewData) { return(PartialExtensions.Partial(htmlHelper, partialViewName, null, viewData)); }
/// <summary> /// Renders the partial view with the specified name. /// </summary> /// <param name="htmlHelper">The HTML helper.</param> /// <param name="partialViewName">Name of the partial view.</param> /// <param name="model">The model.</param> /// <returns> /// Rendered partial view. /// </returns> public static System.Web.Mvc.MvcHtmlString Partial(this HtmlHelper htmlHelper, string partialViewName, object model) { return(PartialExtensions.Partial(htmlHelper, partialViewName, model, htmlHelper.ViewData)); }
/// <summary> /// Renders the partial view with the specified name. /// </summary> /// <param name="htmlHelper">The HTML helper.</param> /// <param name="partialViewName">Name of the partial view.</param> /// <returns>Rendered partial view.</returns> public static MvcHtmlString Partial(this HtmlHelper htmlHelper, string partialViewName) { return(PartialExtensions.Partial(htmlHelper, partialViewName, null, htmlHelper.ViewData)); }