【发布时间】:2012-03-14 05:23:14
【问题描述】:
我是 in.net 的新手,我尝试创建一个简单的网站。
我有这个文本框是多行的并且有固定的宽度和高度。
<asp:TextBox ID="TextBox1" runat="server" Height="168px" TextMode="MultiLine"
Width="303px"></asp:TextBox>
我还创建了一个 web.config 来连接我的 sql 数据库:
<connectionStrings>
<add name="TDBSConnectionString" connectionString="Data Source=local;Initial Catalog=IBSI;Persist Security Info=True;User ID=sa;Password=1"
providerName="System.Data.SqlClient" />
如何从我的数据库中检索数据并将内容显示到上面的文本框中。 我使用多行,因为数据不止一个。
【问题讨论】: