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();
SqlDataReader dr = PersonnelManage._Class.SQLHelper.ExecuteSQLForDataReader(strSql); BusinessList.DataSource = dr;
BusinessList.DataTextField = "BussName";
BusinessList.DataValueField = "BussID";
BusinessList.DataBind();
dr.Close();