1. 首页
  2. 数据库
  3. 其它
  4. asp.net 读取配置文件方法

asp.net 读取配置文件方法

上传者: 2021-01-03 15:09:45上传 PDF文件 81.1KB 热度 17次
方法1: 代码如下: System.Collections.Specialized.NameValueCollection nvc = (System.Collections.Specialized.NameValueCollection) System.Configuration.ConfigurationManager.GetSection(sectionName); string keyValue = nvc.GetValues(keyName)[0].ToString(); 方法2: 代码如下:System.Web.Configuration.WebConfigurationMa
下载地址
用户评论