分页使用Ajax和asp.net的MVC [英] paging with ajax and asp.net mvc

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

问题描述

我有一个返回大型成套这使我在查看记录的查询。我想添加分页,所以我只能显示10条记录的时间。我也希望如此,当我点击下一步,我只是得到了接下来的10条记录,而无需刷新整个页面。是什么做的,使用Ajax来避免重新下载我所有的网站图片和标题,如果我只是想改变数据的列表的内容的最好方式。

i have a query that returns large sets of records which i render on the view. I would like to add paging so i only show 10 records at a time. I also want it so when i click next, i just get the next 10 records without refreshing the whole page. what is the best way to do that using ajax to avoid redownloading all of my website images and header if i am only wanting to change the content of the list of data.

推荐答案

这是了深入的探讨的<一个href="http://weblogs.asp.net/scottgu/archive/2009/04/28/free-asp-net-mvc-nerddinner-tutorial-now-in-html.aspx"相对=nofollow>的NerdDinner演练。这里有一个链接到 C#角文章引用它重重地<一href="http://www.c-sharpcorner.com/uploadfile/scottlysle/pagesortmvcincsharp03192009083337am/pagesortmvcincsharp.aspx"相对=nofollow>带您实现分页的一步一步的演练。

That is covered in depth in the NerdDinner walkthrough. Here's a link to a C# Corner article that references it heavily and takes you on a step-by-step walkthrough of implementing paging.

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

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