Exemple #1
0
    private void FillCourseDropDown()
    {
        CourseDD.Items.Clear();
        ClubBAIST     cb = new ClubBAIST();
        List <Course> cs = cb.ReadAllCourses();

        foreach (Course c in cs)
        {
            ListItem li = new ListItem();
            li.Text  = c.CourseName;
            li.Value = c.CourseID.ToString();
            CourseDD.Items.Add(li);
        }
    }