public void bindStudentAttendance(int Student_ID) { clsStudent cs = new clsStudent(); DataSet ds = cs.StudentAttendance(Student_ID); if (ds.Tables[0].Rows.Count > 0) { lblStudent_Name.Text=ds.Tables[0].Rows[0]["Student_Name"].ToString(); lblLectureConducted.Text=ds.Tables[0].Rows[0]["LectureConducted"].ToString(); lblAbsent.Text = ds.Tables[0].Rows[0]["Abse"].ToString(); lblPresent.Text = ds.Tables[0].Rows[0]["Present"].ToString(); } }