public DataTable Student_Sel_Class(string ClassStudentID) { Staffdal t = new Staffdal(); DataSet ds = new DataSet(); DataTable dt = new DataTable(); ds = t.Student_Sel_Class(ClassStudentID); if (ds.Tables.Count > 0) { dt = ds.Tables[0]; } return(dt); }