如何知道DropDownList选择Item的,此时DataValueField的值是多少?
such as :
DropDownList1.DataTextField = "Name";
DropDownList1.DataSource = dm.SetAClassIndex();
DropDownList1.DataValueField = "classID";
DropDownList1.DataBind();
when select I want to know the ture classID value.
Thanks for any help.
DropDownList1.DataTextField = "Name";
DropDownList1.DataSource = dm.SetAClassIndex();
DropDownList1.DataValueField = "classID";
DropDownList1.DataBind();
when select I want to know the ture classID value.
Thanks for any help.
...全文
相关推荐
用javascript为DropDownList控件下拉式选择添加一个Item至定义索引位置
用Javascript为DropDownList控件下拉式选择添加一个Item至定义索引位置;准备数据,创建一个对象,将是存储DropDownList控件每个Item数据
DropDownList控件绑定数据源的三种方法
本文给大家分享web 中 DropDownList绑定数据源的几种方式以及DropdownList控件动态绑定数据源的两种方法,下面通过本文给大家详细介绍,感兴趣的朋友一起看看
asp.net中不能在DropDownList中选择多个项 原因分析及解决方法
不能在 DropDownList 中选择多个项,在前一步操作的过程中,已经选择了某个Item
(asp.net c#)DropDownList绑定后显示对应的项的两种方法.docx
(asp.net c#)DropDownList绑定后显示对应的项的两种方法.docx
DropDownList下拉菜单显示不同图片
运用控件DropDownList下拉菜单,当选择不同项是相应显示不同的图片


