English versionEnglish
博杨计算机有限公司

MvcPager分页控件

AjaxHelper.Pager扩展方法

该方法用于生成普通分页导航元素。

重载列表:

Pager(this AjaxHelper ajax, int totalPageCount, int pageIndex, string actionName, string controllerName, string routeName, PagerOptions options, object routeValues, AjaxOptions ajaxOps, object htmlAttributes)

Pager(this AjaxHelper ajax, int totalPageCount, int pageIndex, string actionName, string controllerName, string routeName, PagerOptions options, RouteValueDictionary routeValues, AjaxOptions ajaxOps, IDictionary<string,object> htmlAttributes)

Pager(AjaxHelper ajax,PagerOptions pagerOptions,IDictionary<string,object> htmlAttributes)

Pager<T>(this AjaxHelper ajax, PagedList<T> pagedList, AjaxOptions ajaxOptions)

Pager<T>(this AjaxHelper ajax, PagedList<T> pagedList,PagerOptions options, AjaxOptions ajaxOptions)

Pager<T>(this AjaxHelper ajax, PagedList<T> pagedList, PagerOptions options, AjaxOptions ajaxOptions, object htmlAttributes)

Pager<T>(this AjaxHelper ajax, PagedList<T> pagedList, PagerOptions options, AjaxOptions ajaxOptions, IDictionary<string,object> htmlAttributes)

Pager<T>(this AjaxHelper ajax, PagedList<T> pagedList, string routeName, object routeValues, AjaxOptions ajaxOptions, object htmlAttributes)

Pager<T>(this AjaxHelper ajax, PagedList<T> pagedList, string routeName, RouteValueDictionary routeValues, AjaxOptions ajaxOptions,IDictionary<string,object> htmlAttributes)

Pager<T>(this AjaxHelper ajax, PagedList<T> pagedList, string routeName,object routeValues,PagerOptions options, AjaxOptions ajaxOptions, object htmlAttributes)

Pager<T>(this AjaxHelper ajax, PagedList<T> pagedList, string routeName, RouteValueDictionary routeValues, PagerOptions options, AjaxOptions ajaxOptions, IDictionary<string,object> htmlAttributes)

备注:

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

示例:

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