Repeater分页

 

//Repeater分页
PagedDataSource pagedDataSource = new PagedDataSource();
pagedDataSource.DataSource = data.DefaultView;
pagedDataSource.AllowPaging = true;
pagedDataSource.PageSize = AspNetPager1.PageSize;
pagedDataSource.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;

repData.DataSource = pagedDataSource;
repData.DataBind();
posted @ 2013-12-20 12:43  行野摄色  阅读(388)  评论(0编辑  收藏  举报