0
Try this.
string connStr = ConfigurationManager.AppSettings[Constants.appSettingsDataFolderPath].ToString();
Or, you can try this if you have your database connection information in web.config connectionStrings section.
string connStr = ConfigurationManager.ConnectionStrings[Constants.appSettingsDataFolderPath].ConnectionString;
0
Try:
string connectionString = (string)Application[Constants.appSettingsDataFolderPath];