asp.net中的Dropdownbox [英] Dropdownbox in asp.net

查看:79
本文介绍了asp.net中的Dropdownbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下拉框/

推荐答案

的DataValueField和DataTextField的功能是什么当您对Dropdown进行数据绑定时,它使用DataTextFieldDataValueField属性确定数据源的哪些字段用作下拉菜单项的文本"和值".文本用作项目的标签(< option>和</option>标记之间的文本),而Value用作< option>的value属性.标签.
When you databind a Dropdown, it uses the DataTextField and DataValueField propeties to determine which fields of the data source to use as the Text and Value of the Dropdown items. The Text is used as the label of the item (The text between the <option> and </option> tags) and the Value is used for the value attribute of the <option> tag.


有关msdn站点上的更多信息.
http://msdn.microsoft.com/en-us/library/6kb9t87h.aspx [ ^ ]
More information at msdn site..

http://msdn.microsoft.com/en-us/library/6kb9t87h.aspx[^]


这篇关于asp.net中的Dropdownbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆