예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DepartmentDropDownList1.DataSource     = departmentManager.GetAllStudent();
         DepartmentDropDownList1.DataTextField  = "Name";
         DepartmentDropDownList1.DataValueField = "Id";
         DepartmentDropDownList1.DataBind();
     }
 }