Quantcast
Channel: .NET Tutorials
Viewing all articles
Browse latest Browse all 10

Get Connection String from app.config, web.config

$
0
0
Get connection string by connection’s name string conn = ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString;   or string conn = ConfigurationManager.ConnectionStrings[1].ToString();

Viewing all articles
Browse latest Browse all 10

Trending Articles