我有以下代码:
DropDownList1.Items.Clear();
DropDownList1.Items.Add("[Select city]");
while (CRegistro2.Read())
{
DropDownList1.Items.Add(CRegistro2[2].ToString() + " " + CRegistro2[0].ToString());
}
CRegistro2.Dispose();
CRegistro2.Close();
如何添加值,而不仅仅是文本或标签,以在 SelectedIndexChanged 上恢复它