public ListItemCollection StudentDetails(int mediumId, int classId, int sectionId) { var studentList = new ListItemCollection(); var activeStudents = PageDataService.GetActiveStudentsAdoNet(mediumId, sectionId, classId); foreach (var student in activeStudents) { studentList.Add(new ListItem( student.StudentName + "(Mother Name: " + student.MotherName + " , Father Name: " + student.FatherName + ")", Convert.ToString(student.StudentId))); } return(studentList); }