protected void ddl_Student_SelectedIndexChanged(object sender, EventArgs e) { List <StudentMaster> Obj_St = StudentMasterBuss.GetStudentDetails(ddl_Student.SelectedValue); if (Obj_St != null && Obj_St.Count > 0) { for (int i = 0; i < Obj_St.Count; i++) { studentName.Text = Obj_St[i].StudentName; ddl_Class.SelectedValue = Convert.ToString(Obj_St[i].ClassMasterID); ddl_Exhibition.SelectedValue = Convert.ToString(Obj_St[i].ExhibitionCoordinatorMasterID); } } }