简体   繁体   English

带有ASP.NET gridview的jQuery Pagination插件

[英]jQuery Pagination plugin with ASP.NET gridview

Can we implement pagination for an asp:gridview which has 'n' number of records retrieved from a database using a jQuery pagination plug-in. 我们可以为asp:gridview实现分页吗?它使用jQuery分页插件从数据库中检索到n条记录。 If so how can we implement it? 如果是这样,我们如何实施呢?

I'm assuming you're talking about an Ajax implementation since the ASP gridview control has pagination built in. 我假设您正在谈论Ajax实现,因为ASP gridview控件内置了分页功能。

I don't think the gridview would be very helpful in this case. 我认为在这种情况下,GridView不会很有帮助。 1) Because it isn't intended to be used that way and 2) you'd be wasting a lot of overhead on formatting. 1)因为不打算那样使用它,并且2)您在格式化方面会浪费很多开销。

A better idea would be to design something that takes JSON result sets based on pagination data from ASP.NET and have jQuery render the layout on the fly. 一个更好的主意是设计一些东西,该东西基于来自ASP.NET的分页数据来获取JSON结果集,并使jQuery即时呈现布局。

你可以使用一个中继器+ jQuery的解释一样在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM