public override void DataBind() { using (ReportDal DataAccess = new ReportDal()) { String YearMonth = txtYearMonth.Text; //if (!string.IsNullOrEmpty(YearMonth)&&(YearMonth.Length>6)) YearMonth = YearMonth.Substring(0, 4) + YearMonth.Substring(5, 2); PlantBonusRepeater.DataSource = DataAccess.GetPlantBonus(YearMonth); } base.DataBind(); }