C# 클래스 ChiakiYu.Common.Extensions.Html.HtmlHelperPaginationExtensions

分页按钮控件
파일 보기 프로젝트 열기: andyshao/ChiakiYu

공개 메소드들

메소드 설명
GetPagingNavigateUrl ( this htmlHelper, int pageIndex, string currentUrl = null ) : string

构建分页按钮的链接

PagingButton ( this html, IPagingList pagingList, PaginationMode paginationMode = PaginationMode.NumericNextPrevious, int numericPagingButtonCount = 7 ) : System.Web.Mvc.MvcHtmlString

呈现普通分页按钮

PagingButtonForAjax ( this html, IPagingList pagingList, string updateTargetId, PaginationMode paginationMode = PaginationMode.NumericNextPrevious, int numericPagingButtonCount = 7, string ajaxUrl = null ) : System.Web.Mvc.MvcHtmlString

呈现异步分页按钮

비공개 메소드들

메소드 설명
PagingButton ( this html, IPagingList pagingList, bool enableAjax, string updateTargetId, PaginationMode paginationMode = PaginationMode.NumericNextPrevious, int numericPagingButtonCount = 7, string ajaxUrl = null ) : System.Web.Mvc.MvcHtmlString

呈现分页按钮

메소드 상세

GetPagingNavigateUrl() 공개 정적인 메소드

构建分页按钮的链接
public static GetPagingNavigateUrl ( this htmlHelper, int pageIndex, string currentUrl = null ) : string
htmlHelper this 被扩展的HtmlHelper
pageIndex int 当前页码
currentUrl string
리턴 string

PagingButton() 공개 정적인 메소드

呈现普通分页按钮
public static PagingButton ( this html, IPagingList pagingList, PaginationMode paginationMode = PaginationMode.NumericNextPrevious, int numericPagingButtonCount = 7 ) : System.Web.Mvc.MvcHtmlString
html this 被扩展的HtmlHelper
pagingList IPagingList 数据集
paginationMode PaginationMode 分页按钮显示模式
numericPagingButtonCount int 数字分页按钮显示个数
리턴 System.Web.Mvc.MvcHtmlString

PagingButtonForAjax() 공개 정적인 메소드

呈现异步分页按钮
public static PagingButtonForAjax ( this html, IPagingList pagingList, string updateTargetId, PaginationMode paginationMode = PaginationMode.NumericNextPrevious, int numericPagingButtonCount = 7, string ajaxUrl = null ) : System.Web.Mvc.MvcHtmlString
html this 被扩展的HtmlHelper
pagingList IPagingList 数据集
updateTargetId string 异步分页时,被更新的目标元素Id
paginationMode PaginationMode 分页按钮显示模式
numericPagingButtonCount int 数字分页按钮显示个数
ajaxUrl string
리턴 System.Web.Mvc.MvcHtmlString