views:

950

answers:

2

Hi,

In my code behind page, how do I access the connection string which is stored in my web.config file?

C# .net Visual Studio 2008.

Thanks, R.

+6  A: 
System.Configuration.ConfigurationManager.ConnectionStrings["YouConnStringName"].ConnectionString;
Kyle Sonaty