日期:2014-05-18 浏览次数:20378 次
public static string GetConfigStr(string Key) { //获取网站配置字段的键值 System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader(); string ConfigStr=((string)(configurationAppSettings.GetValue(Key, typeof(string)))); return ConfigStr.Trim(); // }