本文介绍了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...
推荐答案如果你想的真正的减轻数据库负载,看看客户端分页 ...
If you want really ease the database load, take a look at client-side paging...
更多推荐
Asp.Net分页最佳实践
发布评论