在开发过程中,需要获取webconfig文件中的customsettings中的NameValue:
var p = System.Configuration.ConfigurationManager.GetSection("customSettings");
NameValueCollection NameValue = (NameValueCollection)p;
string d = NameValue["db.connectionString"];
var p = System.Configuration.ConfigurationManager.GetSection("customSettings");
NameValueCollection NameValue = (NameValueCollection)p;
string d = NameValue["db.connectionString"];