Click here to Skip to main content
12,068,967 members (71,316 online)
Click here to Skip to main content
Add your own
alternative version

Stats

3.5K views
2 bookmarked
Posted

Get DataBase Connection Strings in Easy Way

, 3 Mar 2011 CPOL
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: http://www.dreamincode.net/code/snippet1676.htm[^].
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: http://www.dreamincode.net/code/snippet1676.htm[^].

License

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

Share

About the Author

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

You may also be interested in...

Comments and Discussions

 
Question[My vote of 1] I also gave a vote of 1 (which is rare) because ... Pin
Claire Streb23-Aug-14 6:27
memberClaire Streb23-Aug-14 6:27 
GeneralReason for my vote of 1 Rehashed & recycled code; ultimately... Pin
CJ_Buck16-May-11 10:35
memberCJ_Buck16-May-11 10:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 | Terms of Use | Mobile
Web04 | 2.8.160208.1 | Last Updated 3 Mar 2011
Article Copyright 2011 by MikkelAndersen
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid