SelectedIndex是读,不能写。
最终找到了解决方法:
DropDownList_shoplist.SelectedItem.Value = DropDownList_shoplist.Items[0].Value;
就是设置SelectedItem.Value
SelectedIndex是读,不能写。
最终找到了解决方法:
DropDownList_shoplist.SelectedItem.Value = DropDownList_shoplist.Items[0].Value;
就是设置SelectedItem.Value
转载于:https://www.cnblogs.com/zc22/archive/2009/11/05/1596326.html