asp.net 2.0 读取web.config问题
sljz 2007-01-11 09:31:06 今天把一个项目从1.1转成了2.0,发现系统有一个警告:
警告 1 “Public Shared ReadOnly Property AppSettings() As System.Collections.Specialized.NameValueCollection”已过时:“This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings
我的语句无非就是从web.config中读取数据库连接字符串(Private Shared ReadOnly path As String = System.Configuration.ConfigurationSettings.AppSettings("DAL")),在1.1运行都正常的,2.0是不是有什么改变?