ddl.SelectedIndex = ddl.Items.IndexOf(ddl.Items.FindByValue("Value"));
ddl:dropdownlist的控件名
value:选中的值.
ddl.SelectedIndex = ddl.Items.IndexOf(ddl.Items.FindByValue("Value"));
ddl:dropdownlist的控件名
value:选中的值.
转载于:https://www.cnblogs.com/hmII/archive/2010/04/26/1721341.html