从数据库中获取数据.

问题描述:

你好

如何从数据库中获取数据并显示在标签中.
单击按钮或
会一一显示 我们可以通过计时器间隔中的计时器控制来显示它.


我认为通过泛型有可能实现这一目标.


如果有解决方案,请帮助我.


谢谢,

Hello

How to fetch data from database and show in a label.
It will show one by one by click in button or
we can show it through timer control through timer interval.


I think it may be possible through generics.


If any solution then please help me.


Thanks

好的,这是您需要的资源.

1.连接字符串-连接到DB
2. ADO.NET-从数据库检索数据
3.不知道,泛型是如何/为什么出现的!计时器控制.

链接:
对于与数据库的连接:连接字符串 [ ^ ]!
可以在这里阅读有关数据通信的信息:使用ADO.NET访问数据 [ ^ ]
对于定期的滴答,请 MSDN:计时器控件概述 [
Okay, here are the resources you would need for it.

1. Connection String - to connect to DB
2. ADO.NET - to retrieve data from database
3. No idea, how/why Generics came in the scene! Timer control.

Links:
For connection to DB: Connection String[^]!
Info regarding the data communication can be read here: Accessing data with ADO.NET[^]
For periodic tick, MSDN: Timer Control Overview[^]

Try now!


在这里找到了类似的问题.

如何将值存储在数据库中的标签中 [ ^ ]

这可能对您有帮助

问候
塞巴斯蒂安
Found a similar question here.

how to store values in lables from database[^]

This may be helpful to you

Regards
Sebastian


请参阅
http://*. com/how-to-retrieve-the-values-in-asp-net-form-from-sql-server-2005 [ ^ ]
http://support.microsoft.com/kb/308100 [ http://*.com/how-to-retrieve-column-value-of-sql-server-table-and-store [ ^ ]
Refer this
http://*.com/how-to-retrieve-the-values-in-asp-net-form-from-sql-server-2005[^]
http://support.microsoft.com/kb/308100[^]
http://*.com/how-to-retrieve-column-value-of-sql-server-table-and-store[^]