62,220
社区成员




DropDownList1.Items.Clear();
DropDownList1.Items.Add("-请选择-");
table = BaseDb.RunProcedureForQuery("IntroSelectClass", null).Tables[0];
DropDownList1.DataTextField = table.Rows[0].ItemArray[0].ToString();
DropDownList1.DataValueField = table.Rows[0].ItemArray[1].ToString();
DropDownList1.DataBind();
DataTable dt = CreateDataTable();
this.DropDownList1.DataSource = dt;
this.DropDownList1.DataBind();
this.DropDownList1.DataTextField = "name";
this.DropDownList1.DataValueField = "ID";
this.DropDownList1.Items.Insert(0, new ListItem("请选择","0"));