您的位置:首页 > 产品设计 > UI/UE

建立用户分页WEB界面

2006-09-06 12:50 246 查看
建立用户分页WEB界面
 

By Muhammad Mosa August 21,2006
有时候我们可能需要建立自己的数据对象来替换DataSets和DataTables. 但是这样我们就不能再用到DataSets和DataTables拥有的简单的分页和排序功能。那我们就得写自己的分页及排序。

 

Building Custom Paging Web Form
By Muhammad Mosa August 21, 2006 Sometimes we may need to build our own data objects instead of using DataSets & DataTables. But in this case, we will lose all paging and sorting facilities that is represented using DataSets & DataTables. To overcome this small issue we'll have to write our own custom paging feature as well as with sorting.

 

简介:

 

有时候我们可能需要建立自己的数据对象来替换DataSets和DataTables. 但是这样我们就不能再用到DataSets和DataTables拥有的简单的分页和排序工具。那我们就得写自己的分页及排序,来解决这个问题

 

在这篇文章里,我们将完成用户数据对象(NWProductItem)和数据对象集合(NWProductItemCollection),并以Northwind库中的数据表做示例。数据对象将通过执行范型接口IComparer(NWProductItemComparer)来实现分类排序功能,该范型接口将被使用范型建立的数据对象集合来隐式调用。

 

为了支持分页,我们需要写一个自定义的存储过程来返回分页之后的数据集。我们要使用ObjectDataSource来检测它的分页工具。

 

本文要求了解基本的微软企业库2.0数据存取应用单元以及数据控件应用。 浏览全文
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息