如何用storedprocedure实现MVC网格分页? [英] How to implement MVC grid pagination with storedprocedure?

查看:77
本文介绍了如何用storedprocedure实现MVC网格分页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们想要填充大量数据,则需要花费时间。相反,从数据库获取前10条记录然后获取第二页上的10条记录。

使用Webgrid和PagedList,从数据库中初始加载整个数据。

请给出一个解决方案?



我尝试了什么:



我有工作的storedprocedure

If we want to populate large amount of data it takes time.Instead fetch first 10 records then next 10 records on second page from database.
Using Webgrid and PagedList ,intially loading entire data from database.
Please give a solution?

What I have tried:

I have the working storedprocedure

推荐答案

查看以下链接。



ASP.Net GridView中的自定义分页使用SQL Server存储过程 [ ^ ]
Check out the below link.,

Custom Paging in ASP.Net GridView using SQL Server Stored Procedure[^]


请检查以下使用Jquery DataTables在网格中实现服务器端分页的文章:



带有服务器端过滤,ASP.NET MVC 5中的排序和分页的网格视图



希望它有所帮助!
Please check the following article which use Jquery DataTables to implement server side pagination in grid:

GridView with Server Side Filtering, Sorting and Paging in ASP.NET MVC 5

Hope it helps!


这篇关于如何用storedprocedure实现MVC网格分页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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