title: Connection String Access for ASP.NET
body: <p>Have an asp.net project (4.0), and trying to figure out the best way to access the connection string.</p>
  
  <p>I have 2 connection strings in web.config file, one for prod and other for test.  There are many aspx pages, and I would like to centralize calling the connection by a function or some kind of a global variable -- This way when I need to change the connection string to point the test or production, I can only change it in onle place.</p>
  
  <p>Any ideas for a best practice.</p>
  
  <p>Thanks.</p>