DropDownList1.SelectedItem.Text = str1//
DropDownList1.Items.Add(str1);
DropDownList1.Items.FindByText(str1).Selected=true;先把ListItem放进DDL里啊(string也行)
DropDownList1.Items.Add(str1);
DropDownList1.Items.FindByText(str1).Selected=true;先把ListItem放进DDL里啊(string也行)
DataTable dt=new DataTable();
dt=....(给表赋值)
DropDownList.DataSource=dt;
DropDownList.DataSource.datatextfield="表字段名";
DropDownList.DataSource.datavaluefield="表字段名";
dropdownlist.databind();