摘要: DropDownList设置选定项DropDownList1.SelectedIndex = DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue("中国"));如果通过FindByValue没有找到指定项则为null,而Items.IndexOf(null)会返回-1网友 -> 心雨纷扬 : 可以直接使用 selectedValue=“中国”;大家高兴吧! 阅读全文
posted @ 2011-04-27 15:03 hen 阅读(1158) 评论(9) 推荐(0) 编辑