How to connect ASP.Net 3.5 to SQL Database

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

bretta91

Thread Starter
Joined
May 22, 2010
Messages
32
[using vs2008 + SQL express +c#]
Hello, im relatively new to web development and i need some guidance to connect the pages to the database:

1. Connect the Forms (text boxes) to specific feilds in the database so that the entered data will be stored in the feild.

2. Connect some text feilds (ex. prices, titles) to specific fields so that when the field is updated the website must be updated also.

3. Connect some pictures (ex. product pictures) to image fields so that when the image is changed the website must get the new picture also.
 
Joined
Oct 14, 2008
Messages
135
Hi,

define the Beow code in the web.config file

<connectionStrings>
<add name="connect" connectionString="Data Source=websenew;Initial Catalog=deenclick;user id=sa;password=GktpElsa123;" providerName="System.Data.SqlClient"/>
</connectionStrings>

Hope this helps,
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top