Asp.Net分页最佳实践

编程入门 行业动态 更新时间:2024-10-24 11:21:39
本文介绍了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分页最佳实践

本文发布于:2023-05-29 23:06:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/355042.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:分页   Asp   Net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!