请教:DropDownList控件问题 DropDownList1.SelectedIndex=DropDownList1.Items.IndexOf(new ListItem(text值,value值)); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果text和value不一样DropDownList1.SelectedIndex=DropDownList1.Items.IndexOf(DropDownList1.Items.FindByText("abc"));或DropDownList1.SelectedIndex=DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue("abc")); 还是报同样的错。即使我写成DropDownList1.SelectedIndex=3; ASPNET架构师群组向大家拜年,回帖即有分 怎样调用后台的方法? Cache的機制 水晶报表统计 LinkBUtton触发的事件后无法绑定数据到Gridview 如何获得DetailsView中调用方法的返回值? 弹出提示了,怎么来刷新父页? 不玩游戏了,诚心求教asp.net问题一个。thx 加入我们 “/Web”应用程序中的服务器错误,如何解决,100分赠送? 有关session变量 人 员 招 聘
DropDownList1.SelectedIndex=DropDownList1.Items.IndexOf(DropDownList1.Items.FindByText("abc"));
或
DropDownList1.SelectedIndex=DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue("abc"));
即使我写成DropDownList1.SelectedIndex=3;