Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Get DataBase Connection Strings in Easy Way

By , 3 Mar 2011
Rate this:
Please Sign up or sign in to vote.
I get it from the web.config via ConfigurationManager.ConnectionStrings;
This makes it possible to keep all connectionstring settings in the web.config file.
For example:[^].


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Web Developer freelance
Denmark Denmark
Css, Html and frontend developer in Denmark. (
Backend developer (c#,asp,net,Sitecore,Umbraco)

Comments and Discussions

GeneralReason for my vote of 1 Rehashed & recycled code; ultimately... PinmemberCJ_Buck16-May-11 9:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 3 Mar 2011
Article Copyright 2011 by MikkelAndersen
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid