How To … Read database connection strings from app.config or web.config file
Step 1 : Add a app.config file
Step 2: Add the connection string
Step 3: Add reference to system.configuration
Step 4: Use the connection from ConfigurationManager.ConnectionsStrings
download visual studio solution