private void BindData() { DBLayer db = new DBLayer(); DataSet attendance = new DataSet(); attendance = db.GetMonthlyAttendanceReportByStudentIDAndDate(Convert.ToInt32(Session["CurrentLoggedInStudent"].ToString()), DateTime.ParseExact("01/" + (uiDropDownListMonth.SelectedValue.Length == 1 ? "0" + uiDropDownListMonth.SelectedValue : uiDropDownListMonth.SelectedValue) + "/" + uiDropDownListYear.SelectedValue, "dd/MM/yyyy", null)); uiRepeaterAttendance.DataSource = attendance; uiRepeaterAttendance.DataBind(); uiPanelAttendance.Visible = true; }