請問怎樣將表 Tb_EmployeeInfo 中的列EmpName
賦值給DropDownList1;繁忙寫出語句;
經過測試立即給分;
在線等待......謝謝!

解决方案 »

  1.   

    string strSql = "select BussName,BussID from tblUserBussiness where BussID>=323 and BussName<>'代理商' order by BussName";
    SqlDataReader dr = PersonnelManage._Class.SQLHelper.ExecuteSQLForDataReader(strSql); BusinessList.DataSource = dr;
    BusinessList.DataTextField = "BussName";
    BusinessList.DataValueField = "BussID";
    BusinessList.DataBind();
    dr.Close();
      

  2.   

    忘了一點,DropDownList 綁定在DataGrid1中
      

  3.   

    http://singlepine.cnblogs.com/articles/266538.html