ASP.NET DropDownList控件 [英] ASP.NET DropDownList Control

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

问题描述

有没有办法可以让我的下拉列表连接到数据库以显示该列表中的不同?

如果我有五个下拉列表,每个下拉列表中都可以有不同的数据相同的数据表然后将该数据填充到文本框中?



示例:



如果下拉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?
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.


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

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