Get DataBase Connection Strings in Easy Way





1.00/5 (2 votes)
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[^].