Пример #1
0
        protected void ProvisionCourses(object sender, EventArgs args)
        {
            CourseIDs = new List <string>();

            // Add the IDs for selected courses to the list
            foreach (int selectedIndex in CourseList.GetSelectedIndices())
            {
                CourseIDs.Add(CourseList.Items[selectedIndex].Value);
            }

            if (CourseIDs.Count == 0)
            {
                PageError.Text = "Empty course list.";
            }

            CourseSelectPanel.Visible        = false;
            ProvisioningResultsPanel.Visible = true;
        }