DropDownList1.DataSource=....
DropDownList1.DataTextField = "item_name"
DropDownList1.DataValueField = "item_code"
DropDownList1.DataBind();
DropDownList1.DataTextField = "item_name"
DropDownList1.DataValueField = "item_code"
DropDownList1.DataBind();
{
string str=((int)(row[0])).ToString();
string str1=((int)(row[1])).ToString();
DropDownListyear.Items.Add(new ListItem(str1, str));
}
dropdownlist1.items.insert(i,数组的值)
dropdownlist1.items.item(i).value=数组的值