I got the following warning
\'System.Configuration.ConfigurationSettings.AppSettings\' is obsolete: \'\"This method is obsolete, it has been replace
After adding the reference using System.Configuration;
at the top of the class. Still the same warning remains.
In Code Behind:
Instead of ConfigurationSettings.AppSettings["ConnectionString"]
Use ConfigurationManager.AppSettings["ConnectionString"]
By Default the System.configuration Dll will be added in your project.
In Web.config or App.config: