开发者

ASP.NET MVC Pagination using Take and Skip

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开发者_Go百科


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.:

ASP.NET MVC Pagination using Take and Skip


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.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜