Click here to Skip to main content
15,884,298 members
Articles / .NET
Alternative
Tip/Trick

Get DataBase Connection Strings in Easy Way

Rate me:
Please Sign up or sign in to vote.
1.00/5 (2 votes)
3 Mar 2011CPOL 8.3K   2   2
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)


Written By
Web Developer freelance
Denmark Denmark
This member doesn't quite have enough reputation to be able to display their biography and homepage.

Comments and Discussions

 
Question[My vote of 1] I also gave a vote of 1 (which is rare) because ... Pin
Claire Streb23-Aug-14 5:27
Claire Streb23-Aug-14 5:27 
GeneralReason for my vote of 1 Rehashed & recycled code; ultimately... Pin
CJ_Buck16-May-11 9:35
CJ_Buck16-May-11 9: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.