예제 #1
0
 // 刷新专业号
 protected void bindSpecility()
 {
     // 获得未创建标准的专业
     ddlSpeciality.Items.Clear();// 先清空已下拉菜单
     ddlSpeciality.Items.Add(new ListItem("==请选择==", "null"));
     ddlSpeciality.DataSource = finSrv.GetSpeciality(ddlDepartment.SelectedValue);
     ddlSpeciality.DataBind();
 }
예제 #2
0
 // 当下拉学院改变时,添加专业信息
 protected void DdlDepartment_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlDepartment.SelectedValue != "null")
     {
         // 获得专业下拉信息
         ddlSpeciality.Items.Clear();                              // 先清空已下拉菜单
         ddlSpeciality.Items.Add(new ListItem("==请选择==", "null")); //设置第一行
         ddlSpeciality.DataSource = finSrv.GetSpeciality(ddlDepartment.SelectedValue);
         ddlSpeciality.DataBind();
     }
     else
     {
         lbMessage.Text = "请选择学院";
     }
 }