Example #1
0
 /// <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));
 }
Example #2
0
 /// <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));
 }
Example #3
0
 /// <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));
 }