110,566
社区成员
发帖
与我相关
我的任务
分享
SqlDataSource sqlDS2 = new SqlDataSource();
sqlDS2.ConnectionString = WebConfigurationManager.ConnectionStrings["gutestConnectionString"].ConnectionString;
sqlDS2.SelectCommand = "select a.cbbbm,a.cbbmc from bm_cbb as a where sscbpq= '" + DropDownList1.SelectedValue + "' order by cbbmc";
DropDownList2.DataSourceID = sqlDS2.ID;
DropDownList2.DataTextField = "cbbmc";
DropDownList2.DataValueField = "cbbbm";
DropDownList2.DataBind();