Add the connection string to a web configuration file higher in the folder hierarchy : Connection Strings « ADO.net Database « ASP.NET Tutorial






The root Web.Config file is located at the following path:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG








18.37.Connection Strings
18.37.1.Storing Connection Strings in the Web Configuration File
18.37.2.Add the connection string to a web configuration file higher in the folder hierarchy
18.37.3.Encrypting Connection Strings with aspnet_regiis located in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\