获取值:dropdownlist.selectedvalue获取内容:dropdownlist.selectedtext也可以使用:dropdownlist.selecteditem.text/value
DropDownList2.Items.Clear(); DropDownList2.Items.Add("大手牵小手"); //为DropDownList2控件添加项 DropDownList2.Items.Add("暖暖"); DropDownList2.Items.Add("如果");
后者:
DropDownList2.Items.Clear(); ListItem item = new ListItem("舞娘","0"); DropDownList2.Items.Add(item);