private void populateProgram() { Student stu = new Student(); Collection<Student> ProgramList = new Collection<Student>(); ProgramList = stu.GetProgramInterst(); foreach (Student st in ProgramList) { TextBoxProgram.Items.Add(st.MajorProgramEnrollment); } // TextBoxProgram.DataSource = ProgramList; TextBoxProgram.DataBind(); }
private void populateProgram() { Student stu = new Student(); Collection<Student> ProgramList = new Collection<Student>(); ProgramList = stu.GetProgramInterst(); txtProgramInterest.DataSource = ProgramList; txtProgramInterest.DataBind(); }