方法一:
string myConn = System.Configuration.ConfigurationManager.ConnectionStrings[ " sqlConnectionString " ].ConnectionString;
方法二:
string connString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings[ " sqlConnectionString " ].ToString();
string myConn = System.Configuration.ConfigurationManager.ConnectionStrings[ " sqlConnectionString " ].ConnectionString;
方法二:
string connString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings[ " sqlConnectionString " ].ToString();