Code
// 1
//DropDownList1.SelectedValue = "5g";
// 若SelectedValue没有对应的5g,则抛出如下异常
// “DropDownList1”有一个无效 SelectedValue,因为它不在项目列表中。
//参数名: value
// 2
// DropDownList1.SelectedItem.Text = "President";
// 是设置索引中最小项的值为President,并不是选择文本为President的项
// 3 如何选择它的项最妥当
DropDownList1.SelectedIndex = this.DropDownList1.Items.IndexOf(DropDownList1.Items.FindByText("President"));
// or
DropDownList1.SelectedIndex = this.DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue("value"));