private void BindData() {

            BLL.TrafficLine _TrafficLine = new Traffic.BLL.TrafficLine();
            DataSet ds = _TrafficLine.GetAllList();
          
                PagedDataSource pds = new PagedDataSource();
                pds.AllowPaging = true;
                pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;
                pds.PageSize = 4;

                AspNetPager1.RecordCount = ds.Tables[0].Rows.Count;
                pds.DataSource = ds.Tables[0].DefaultView;
                Repeater1.DataSource = pds;
                Repeater1.DataBind();

        }

相关文章:

  • 2022-12-23
  • 2021-09-23
  • 2022-02-27
  • 2022-02-06
猜你喜欢
  • 2022-02-08
  • 2021-11-11
相关资源
相似解决方案