日期:2014-05-19  浏览次数:20424 次

DropDownList取值的问题~求求你们救救我这个新手吧!谢谢!!求求你们了!
我有3个DropDownList来实现刷新的联动(不会不刷新的联动)
分别是DropDownListCity和DropDownListArea还有DropDownListPlace
SQL数据库有一表   该表有以下列
ID   ,city   ,cityID
1         北京     110000
2         上海     120000
3         南京     130000
4         重庆     140000
DropDownListCity中设置了显示   city这一列(北京,上海等)但DropDownListCity的值设置为了cityID这一列(110000,120000等)并且通过这个值实现联动。
现在通过页面传值想把DropDownListCity的值传送到另外一个页面的label里面,但是用DropDownListCity.SelectedValue获取的值是110000,120000之类的值(cityID列的)
我现在想取该表city的值(北京,上海等)应该怎么写?
真诚的谢谢您!!!

------解决方案--------------------
DropDownListCity.SelectedText
------解决方案--------------------
DropDownListCity.SelectedItem.Text;

------解决方案--------------------
DropDownListCity.SelectedText
value都被你取到了还取不到 text啊?
------解决方案--------------------
DropDownListCity.SelectedItem.Text;
------解决方案--------------------
DropDownListCity.SelectedItem.Text;