ASP.NET MVC Pagination using Take and Skip

前端 未结 3 1728
[愿得一人]
[愿得一人] 2021-01-24 07:12

EDIT: This question has been made redundant by this question as much of the code changed from using a repository to using just the controller: (Homework) MVC Pagination Help

相关标签:
3条回答
  • 2021-01-24 07:40

    May I suggest the following article: Displaying a Paged Grid of Data in ASP.NET MVC. It walks through displaying a paged grid of data and building a paging interface in detail.

    0 讨论(0)
  • 2021-01-24 07:43

    you could also try this approach (a button that shows more results, instead of going to the next page)

    http://demo.aspnetawesome.com/AjaxListDemo

    or a simple pager http://demo.aspnetawesome.com/PagerDemo

    0 讨论(0)
  • 2021-01-24 07:46

    Cameron,

    I can point you to an example that I created a wee while back for someone here on SO (using an IPagedList interface). it works as a htmlhelper but may be more featured than you're after. it follows the pattern here on SO for paging, i.e.:

    alt text

    0 讨论(0)
提交回复
热议问题