protected void fillCourseTopicDropDownByCloId(String cloId) { DropDownList5.Items.Clear(); AppDao appDaoObj = new AppDao(); List<AppCourseTopic> CLOList = appDaoObj.getCourseTopicListByCloId(cloId); if (CLOList != null) { foreach (AppCourseTopic CLO in CLOList) { ListItem att2 = new ListItem(); att2.Value = CLO.id.ToString(); att2.Text = CLO.topic.ToString(); DropDownList5.Items.Add(att2); } DropDownList5.SelectedIndex = 0; } }