Пример #1
0
 protected void ddlDept_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlDept.SelectedItem.Text != "Select")
     {
         BusinessObjects bo     = new BusinessObjects();
         DataSet         ds     = bo.GetInstByDept(ddlDept.SelectedItem.Text);
         DataRow         newRow = ds.Tables[0].NewRow();
         newRow[0] = "Select";
         ds.Tables[0].Rows.InsertAt(newRow, 0);
         ddlInst.DataSource     = ds.Tables[0];
         ddlInst.DataTextField  = "User_ID";
         ddlInst.DataValueField = "User_ID";
         ddlInst.DataBind();
     }
 }