DropDownList 通过text 设置 默认值

时间:2015/10/29 21:19:00来源:互联网 作者:flyso 点击: 891 次

DropDownList1.Items.FindByText(“abc”).Selected = true;

DropDownList1.SelectedIndex = type.Items.IndexOf(DropDownList1.Items.FindByText("abc"));

Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3