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