DropDwonList 绑定值

 

多年后才发现{

在asp.net 中为DropDownList赋值的时候,原来是可以这么用的: 

 

DropDownList1.SelectedIndex = DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue("值"));

枉我为它忙的一段段,bs!

posted @ 2011-12-21 21:23  jingjunfeng  阅读(267)  评论(0编辑  收藏  举报