ASP.NET DropDownList控件 [英] ASP.NET DropDownList Control
问题描述
有没有办法可以让我的下拉列表连接到数据库以显示该列表中的不同?
如果我有五个下拉列表,每个下拉列表中都可以有不同的数据相同的数据表然后将该数据填充到文本框中?
示例:
如果下拉list是我的下拉列表中的年份,它可以填充当年数据库中的内容的文本框吗?
2000年2001年2002年
总资产:10,000 20,000 30,000
总负债:2,000 4,000 6,000
总净资产:1,000 2,000 3,000
看起来像网格视图或报告类型。
Is there a way I can have my drop down list to connect to a database to show different in that list? 这篇关于ASP.NET DropDownList控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
If I have five drop down lists, can each one have different data from the same data Table and then populate that data into a text box?
Example:
If drop down list is a Years in my drop down list, Can it populate the text boxes of what is in the database under that year?
Year 2000 Year 2001 Year 2002
Total Assets: 10,000 20,000 30,000
Total Liabilities: 2,000 4,000 6,000
Total Net Assets: 1,000 2,000 3,000
It will look like a grid view or report type.There''s a small arrow on your control in the upper right. One of your options will start a wizard that will walk you through doing this.