How to retrieve and display data from SQL to Aspx webform

w00t!

New Member
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. \[code\]<asp:TextBox ID="TextBox1" runat="server" Height="168px" TextMode="MultiLine" Width="303px"></asp:TextBox>\[/code\]i have also created a web.config to connect to my sql database:\[code\]<connectionStrings><add name="TDBSConnectionString" connectionString="Data Source=local;Initial Catalog=IBSI;Persist Security Info=True;User ID=sa;Password=1" providerName="System.Data.SqlClient" />\[/code\]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.
 
Back
Top