请教:有关数据绑定的问题
void Page_Load(Object Src, EventArgs E)
{
if (!Page.IsPostBack) {
ArrayList values = new ArrayList();
values.Add ("China");
values.Add ("America");
DropDownList1.DataSource = values;
DropDownList1.DataBind();
}
}
通过以上的数据绑定,DropDownList1的SelectItem.Text和SelectItem.Value的值是一样的,请问如何将DropDownList1的SelectItem.Text为“china”,“America”其相应的SelectItem.Value为“中国”,“美国”请大虾指点 谢谢!