如何在Mvc 3中实现分页和排序 [英] How Can I Implement Paging And Sorting In Mvc 3
本文介绍了如何在Mvc 3中实现分页和排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在asp.net mvc 3中实现分页和排序选项。请举例。
Hi,
I want to implement paging and sorting option in asp.net mvc 3. Please provide an example.
推荐答案
您好Anupama,
要在mvc应用程序中实现分页,您可以使用'PagedList'。
我不确定它是否支持排序,但是通过5-6行的代码,您可以在应用程序中轻松实现分页。
在我们的组织中,我们经常使用它进行分页。
我希望以下链接可以帮助你..
https://github.com/TroyGoode/PagedList [ ^ ]
有一个很好的编码!!
Hi Anupama,
For implementing the Paging in mvc application you can use the 'PagedList'.
I am not sure whether it supports the sorting or not but by code for 5-6 line you can easily implement paging in your application .
Here in our organization, we use this for paging so often.
I hope below link will help you..
https://github.com/TroyGoode/PagedList[^]
Have a great coding!!
这篇关于如何在Mvc 3中实现分页和排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文