protected void Page_Load(object sender, EventArgs e)
 {
     XulyLayThongTinSanPhamByPhongCach phongcach = new XulyLayThongTinSanPhamByPhongCach();
     XulyTruyXuatAllThongTinSanPhamByMaNSX sanphamByMaNSX = new XulyTruyXuatAllThongTinSanPhamByMaNSX();
     sanphamByMaNSX.MaNSX.MaNSX = this.MaNSX;
     sanphamByMaNSX.Thucthi();
     CollectionPager1.MaxPages = 1000;
     CollectionPager1.PageSize = 28;
     CollectionPager1.DataSource = sanphamByMaNSX.ketqua.DefaultView;
     CollectionPager1.BindToControl = datalist1;
     datalist1.DataSource = CollectionPager1.DataSourcePaged;
     datalist1.DataBind();
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     XulyLayThongTinSanPhamByPhongCach phongcach = new XulyLayThongTinSanPhamByPhongCach();
     phongcach.thongtinsanpham.MaPhongCach = this.Maphongcach;
     phongcach.Thucthi();
     //nhasx.Thucthi_xuattable();
     CollectionPager1.MaxPages = 1000;
     CollectionPager1.PageSize = 8;
     CollectionPager1.DataSource = phongcach.table.DefaultView; //nhasx.table.DefaultView;
     CollectionPager1.BindToControl = datalist1;
     datalist1.DataSource = CollectionPager1.DataSourcePaged;
     datalist1.DataBind();
 }