i’m a newbie in.net and im try to create a simple site.
I have this textbox that is multiline and has fix width and height.
<asp:TextBox ID="TextBox1" runat="server" Height="168px" TextMode="MultiLine"
Width="303px"></asp:TextBox>
i have also created a web.config to connect to my sql database:
<connectionStrings>
<add name="TDBSConnectionString" connectionString="Data Source=local;Initial Catalog=IBSI;Persist Security Info=True;User ID=sa;Password=1"
providerName="System.Data.SqlClient" />
How can i retrieve a data from my database and display the content into the textbox above.
i use multiline because the data is more than one.
have look to this msdn tutorial : Retrieving Data Using the DataReader
Sample: