string UserId = Session["currentUser"].ToString();
PagedDataSource pdsRecycleInfo = new PagedDataSource();
//对PagedDataSource对象的相关属性赋值
pdsRecycleInfo.DataSource = FileDAL.GetRecycleInfo(UserId);
//设置允许分页
pdsRecycleInfo.AllowPaging = true;
//设置页大小
pdsRecycleInfo.PageSize = 10;
pdsRecycleInfo.CurrentPageIndex = Pager;
这是我写的代码.. 就是使用PagedDataSource 进行分页..
可以为什么不存在Pager啊?
PagedDataSource pdsRecycleInfo = new PagedDataSource();
//对PagedDataSource对象的相关属性赋值
pdsRecycleInfo.DataSource = FileDAL.GetRecycleInfo(UserId);
//设置允许分页
pdsRecycleInfo.AllowPaging = true;
//设置页大小
pdsRecycleInfo.PageSize = 10;
pdsRecycleInfo.CurrentPageIndex = Pager;
这是我写的代码.. 就是使用PagedDataSource 进行分页..
可以为什么不存在Pager啊?
Pager是什么东西,从哪里来?
我看书上也没有哪里定义了Pager啊..
压根就没找到Pager,我同学的代码也是..
可是他的行得通啊..
但他现在没在这呢