I'm looking access the AppSettings in the web.config file for use in the application. I recently converted an application from 1.x to 3.5.
In 3.5 though, I get this Warning:
is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!Syste
I've read on this site about using System.ConfigurationManage
r but for some reason, VS doesn't provide that as an option under System.
I'm using VS 9.0.30729.1 with SP 1.
Here's the 1.x code I'm using in the web.config and the C#:
<add key="ConnectionString" value="server=[server];user id=[userid];password=[userpw];database=[DataBase];Connect Timeout=100;"/>
String sqlConnStr = ConfigurationSettings.AppSettings.Get("ConnectionString");