public override void DataBind() { using (ReportDal DataAccess = new ReportDal()) { String YearMonth = ""; // txtYearMonth.Text; String SpecialField = Request.Params["SpecialField"]; if (!string.IsNullOrEmpty(YearMonth) && (YearMonth.Length > 6)) { YearMonth = YearMonth.Substring(0, 4) + YearMonth.Substring(5, 2); } DateTime StartDate = Convert.ToDateTime(txtStartDate.Text); DateTime EndDate = Convert.ToDateTime(txtEndDate.Text); ScoreRepeater.DataSource = DataAccess.GetShiftScore(StartDate, EndDate, SpecialField); } base.DataBind(); ColSpan(); }