【问题标题】:How to retrieve data from SQL Server 2005 and display it in a label using asp.net and如何从 SQL Server 2005 检索数据并使用 asp.net 将其显示在标签中
【发布时间】:2011-03-14 09:52:04
【问题描述】:

我正在创建一个从 SQL Server 2005 读写的网站。

我可以写入数据库,但无法检索该数据并将其显示在标签中。

请问有人对如何检索数据并在标签中显示有任何建议。

【问题讨论】:

  • 你在用什么WebForms,MVC?您使用什么框架来访问数据库 ADO、EF、NHibernate?
  • 使用网络表单。和 ADO 框架

标签: asp.net sql-server sql-server-2005


【解决方案1】:

看来你是数据绑定和数据驱动应用开发陡峭学习曲线的开始。

与其试图在这里告诉你,我只是向你指出一些关于这个主题的好阅读材料:

http://www.startvbdotnet.com/aspsite/ado/databinding.aspx http://www.codeproject.com/KB/aspnet/Mastering_DataBinding.aspx http://www.15seconds.com/issue/040630.htm

祝你学习顺利,希望对你有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-03-04
    • 2017-05-20
    • 2013-08-02
    • 2018-10-15
    • 2014-06-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多