Add a reference to System.Configuration
, then have a using class for System.Configuration
, then you will have access to:
ConfigurationManager.ConnectionStrings
And yours can be accessed via
string s = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
Noon Silk
2009-08-31 02:55:11