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

 

 

 

 

 


Posted

in

, ,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *