Exemple #1
0
        protected void btnViewClasses_Click(object sender, EventArgs e)
        {
            SectionList sList = new SectionList();

            sList = sList.GetAll(); // Get all sections

            ddlSections.DataSource = sList.List;
            ddlSections.DataBind();
            ddlSections.Items.Add("Choose Class Time");
            ddlSections.SelectedValue = "Choose Class Time";
            ddlSections.Visible       = true;
        }
Exemple #2
0
        protected void btnSetupClass_Click(object sender, EventArgs e)
        {
            Instructor instructor = (Instructor)Session["Instructor"]; //Initialize BusinessObjects

            SectionList sList = new SectionList();

            sList = sList.GetAll(); // Get all sections

            ddlSections.DataSource = sList.List;
            ddlSections.DataBind();
            ddlSections.Items.Add("Choose Class Time");
            ddlSections.SelectedValue = "Choose Class Time";
            ddlSections.Visible       = true;
        }