private void BindData() { DataTable dt = bbll.GetList(" brandid not in (SELECT distinct brandid FROM pdbrandcategoryrelation where cateid=" + CategoryID + ")", " brandname").Tables[0]; Repeater_Brand.DataSource = dt; Repeater_Brand.DataBind(); }
private void BindData(int PageIndex) { int RecordCount = 0; DataTable dt = new DataTable(); if (CategoryID == 0) { dt = bll.GetList(PageIndex, AspNetPager.PageSize, String.Empty, out RecordCount).Tables[0]; } else { dt = new BrandCategoryRelationBll().GetCategoryBrandList(CategoryID); } foreach (DataRow row in dt.Rows) { row["brandlogo"] = CommonImageUpload.GetCommonImageFullUrl(Convert.ToString(row["brandlogo"])); } Repeater_Brand.DataSource = dt; Repeater_Brand.DataBind(); AspNetPager.RecordCount = RecordCount; }