コード例 #1
0
 public static HtmlString Pager(this HtmlHelper helper, int itemsCount, int pageSize, int maxDisplayedPages,
                                string queryParameterName)
 {
     var model = new ListPager(itemsCount, pageSize, maxDisplayedPages, queryParameterName);
     return new HtmlString(RenderPartialViewToString("_Pager", model, helper.ViewContext));
 }
コード例 #2
0
 public static HtmlString Pager(this HtmlHelper helper, int itemsCount, int pageSize)
 {
     var model = new ListPager(itemsCount, pageSize);
     return new HtmlString(RenderPartialViewToString("_Pager", model, helper.ViewContext));
 }