English versionEnglish
博杨计算机有限公司

MvcPager分页控件

HtmlHelper.AjaxPager扩展方法

该方法用于生成使用jQuery脚本库进行分页的导航链接。

重载列表:

AjaxPager(HtmlHelper html,PagerOptions pagerOptions,IDictionary<string,object> htmlAttributes)

AjaxPager(this HtmlHelper html, int totalPageCount, int pageIndex, string actionName, string controllerName, string routeName, PagerOptions options, object routeValues, AjaxOptions ajaxOps, object htmlAttributes)

AjaxPager(this HtmlHelper html, int totalPageCount, int pageIndex, string actionName, string controllerName, string routeName, PagerOptions options, RouteValueDictionary routeValues, AjaxOptions ajaxOptions, IDictionary htmlAttributes)

AjaxPager<T>(this HtmlHelper html, PagedList<T> pagedList, AjaxOptions ajaxOptions)

AjaxPager<T>(this HtmlHelper html, PagedList<T> pagedList,string routeName, AjaxOptions ajaxOptions)

AjaxPager<T>(this HtmlHelper html,PagedList<T> pagedList,PagerOptions pagerOptions,AjaxOptions ajaxOptions)

AjaxPager<T>(this HtmlHelper html, PagedList<T> pagedList, PagerOptions pagerOptions, AjaxOptions ajaxOptions,object htmlAttributes)

AjaxPager<T>(this HtmlHelper html, PagedList<T> pagedList, PagerOptions pagerOptions, AjaxOptions ajaxOptions, IDictionary<string,object> htmlAttributes)

AjaxPager<T>(this HtmlHelper html, PagedList<T> pagedList, string routeName, object routeValues, PagerOptions pagerOptions, AjaxOptions ajaxOptions)

AjaxPager<T>(this HtmlHelper html, PagedList<T> pagedList, string routeName, object routeValues, PagerOptions pagerOptions, AjaxOptions ajaxOptions, object htmlAttributes)

AjaxPager<T>(this HtmlHelper html, PagedList<T> pagedList, string routeName, RouteValueDictionary routeValues, PagerOptions pagerOptions, AjaxOptions ajaxOptions, IDictionary htmlAttributes)

AjaxPager<T>(this HtmlHelper html, PagedList<T> pagedList, string actionName, string controllerName, PagerOptions pagerOptions, AjaxOptions ajaxOptions)

备注:

使用该方法进行分页时,需要引入jQuery客户端脚本,否则将降级为普通分页。

示例:

<=Html.AjaxPager(Model,"Paging",new AjaxOptions{UpdateTargetId = "dvOrders"})>