Asp.net MVC分页机制 [英] Asp.net mvc paging mechanism

查看:161
本文介绍了Asp.net MVC分页机制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一些优雅的方式,最好用jQuery插件如寻呼机1 或的寻呼机2 如何实现与asp.net的MVC分页?我试图去了部分意见,但至今unsucessfully。我应该在哪里存储加载网格数据?以及如何在页面选择只是一个局部刷新回应?

is there some elegant way, ideally with jquery plugin like pager 1 or pager 2 how to implement paging with asp.net mvc? I am trying to go over partial views, but so far unsucessfully. Where should I store the loaded grid data? And how to respond on the page selection with just a partial refresh?

先谢谢了。

推荐答案

试试这个的文章出来,看起来pretty得心应手 - 他使用的自定义HTML扩展方法。此外,还要检查该SO <一个href=\"http://stackoverflow.com/questions/291893/how-do-you-implement-paging-in-asp-net-mvc/\">question.

Try this article out, looks pretty handy - he uses a custom Html extension method. Also, check this SO question.

这篇关于Asp.net MVC分页机制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆