コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack == false)
            {
                AppDao            appDaoObj = new AppDao();
                List <AppProgram> progList  = appDaoObj.getProgramList();
                foreach (AppProgram prog in progList)
                {
                    ListItem att2 = new ListItem();
                    att2.Value = prog.programId.ToString();
                    att2.Text  = prog.programName;
                    DropDownList1.Items.Add(att2);
                }

                fillCourseDropDown(DropDownList1.SelectedValue);
            }
        }