您的位置:首页 > 编程语言 > ASP

ASP.NET实现分页功能

2009-12-05 20:43 453 查看
There are two main ways to implement paging:

• Paging at the database level: In this case, the database returns only the page of products
the visitor wants to see.
• Paging at the application level: In this scenario, the data tier always returns the complete
list of products for a certain section of the site, and the presentation tier objects (such as
the GridView control) extract the requested page of products from the complete list. This
method has potential performance problems especially when dealing with large result
sets, because it transfers unnecessarily large quantities of data from the database to the
presentation tier. Additional data also needs to be stored on the server’s memory, unneces-
sarily consuming server resources.

Not original,copied from, :Beginning ASP.NET E-Commerce in C# From Novice to Professional.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: