Connection Strings
I am trying to find out if you can access connection strings to database's the same way you can in ASP.Net though the WebConfig AppSettings Key tag.
such as the following example in ASP.Net.
example;
<appSettings>
<add key="ConnectionString" value="data source=MyDB;initial catalog=DB1;password=pasword0123;persist security info=True;user id=MySQLUser;packet size=4096" />
</appSettings>
Accessing connString in class file;
// Create Instance of Connection and Command Object
SqlConnection sqlConn = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]);
SqlCommand sqlCmd = new SqlCommand("MyProc",sqlConn);
Thanks,
Ron

