摘要:
aspx.cs文件中写以下内容: AppSettingsReaderAppRead = new AppSettingsReader(); stringurl = Convert.ToString( AppRead.GetValue( "addressUrl", typeof(string))); config内容中另起一个节点:写以下内容<appSettings> <add key= "addressUrl" value= http://baidu.com/> </appSettings>这样就可以读取Config文件 阅读全文
posted @ 2012-01-04 17:01 一佳一 阅读(217) 评论(0) 推荐(0)