Asp.Net分页最佳实践 [英] Asp.Net pagination best practice
本文介绍了Asp.Net分页最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
,我得到一个回发,我重新阅读所有的数据,显示第二页。我猜想应该有这样做的更好的办法,那最终只阅读我需要显示的数据的方法。如果有任何code样我不知道...
I'm using linq to sql to get my data, when I set the page size on my data grid and the user selects page 2, I get a postback and I re-read all the data to show the second page. I suspect there should be a better way of doing this, a way that ends up reading just the data I need to show. I was wondering if there are any code samples...
推荐答案
如果你想的真正的减轻数据库负载,看看<一个href=\"http://www.ajaxlines.com/ajax/stuff/article/use%5Fjquery%5Fand%5Faspnet%5Fajax%5Fto%5Fbuild%5Fa%5Fclient%5Fside%5Frepeater.php\"相对=nofollow>客户端分页 ...
If you want really ease the database load, take a look at client-side paging...
这篇关于Asp.Net分页最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文