Pages

Sunday, April 16, 2017

How to read connection string

 string connectionString = ConfigurationManager.ConnectionStrings[connectionName].ConnectionString;  

Make sure to add reference to System.configuration in your project.

No comments:

Post a Comment