Building an ASP.NET Phonebook Web Application - Part 1
I devided Phonebook aplication in four parts:
Part 1: Creating simple database and adding connection string.
Part 2: Building an application - doing everything that's related with persons (list of persons, insert/edit/delete person and see persons phone numbers).
Part 3: Building an application - we'll do the same thing as in Part 2 but with phone numbers.
PART 1: creating simple database and adding connection string
For building this application I used Visual Studio 2013 and SQL Server Express 2012 with SQL Server Management Studio.
Goal is to have the list of persons with links to their phone numbers. You can edit/add/delete person or phone number. Each person can have several phone numbers.
In Visual Studio create Empty Web Application - Phonebook. Then in SQL Server Management Studio create new Database with two tables - Persons and PhoneNumbers. Add the primary and foreign keys and some data.
After creating and editing tables go to the Visual Studio/Sever explorer and add connection, also in this point you need to copy the connection string which you can find under Advanced Properties/DataSource.
Add connection string to Web.config.
In Part 2 we'll build the application.