C# connection string in web.config file
.net, c#, connection-string, visual-studio-2008, web-config
Solution
System.Web.Configuration.WebConfigurationManager.ConnectionStrings["YouConnStringName"].ConnectionString;
This requires references to System.Configuration.dll and System.Web.dll.
Problem
In my code behind page, how do I access the connection string which is stored in my web.config file?