English versionEnglish
博杨计算机有限公司

MvcPager分页控件

HtmlHelper.Pager扩展方法

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

重载列表:

Pager(this HtmlHelper helper, int totalPageCount, int pageIndex, string actionName, string controllerName, PagerOptions options, string routeName, object routeValues, object htmlAttributes)

Pager(this HtmlHelper helper, int totalPageCount, int pageIndex, string actionName, string controllerName, PagerOptions options, string routeName, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes)

Pager<T>(this HtmlHelper helper, PagedList<T> pagedList)

Pager<T>(this HtmlHelper helper, PagedList<T> pagedList, PagerOptions options)

Pager<T>(this HtmlHelper helper, PagedList<T> pagedList, PagerOptions options,object htmlAttributes)

Pager<T>(this HtmlHelper helper, PagedList<T> pagedList, PagerOptions options, IDictionary<string,object> htmlAttributes)

Pager<T>(this HtmlHelper helper, PagedList<T> pagedList, PagerOptions options, string routeName, object routeValues)

Pager<T>(this HtmlHelper helper, PagedList<T> pagedList, PagerOptions options, string routeName, RouteValueDictionary routeValues)

Pager<T>(this HtmlHelper helper, PagedList<T> pagedList, PagerOptions options, string routeName, object routeValues, object htmlAttributes)

Pager<T>(this HtmlHelper helper, PagedList<T> pagedList, PagerOptions options, string routeName, RouteValueDictionary routeValues, IDictionary<string,object> htmlAttributes)

Pager<T>(this HtmlHelper helper, PagedList<T> pagedList, string routeName, object routeValues, object htmlAttributes)

Pager<T>(this HtmlHelper helper, PagedList<T> pagedList, string routeName, RouteValueDictionary routeValues, IDictionary<string,object> htmlAttributes)

示例:

<=Html.Pager(Model,new PagerOptions(){PageIndexParameterName = "id"})>