Configuration.ConfigurationSettings.AppSettings已过时

1.在项目中引用System.Configuration.dll,在需要的页面加上using System.Configuration; 
2.把ConfigurationSettings.AppSettings["字符串"]; 替换成ConfigurationManager.AppSettings["字符串"]; 

posted @ 2015-01-08 16:51  天琊蓝  阅读(664)  评论(0编辑  收藏  举报