【发布时间】:2011-08-24 08:24:43
【问题描述】:
这是我在 web.config 中的 appSettings:
<appSettings>
<add key="**Subdomain**" value="england" />
</appSettings>
在同一个 web.config 中,我想读取这个值:
<errorLog applicationName="**Subdomain**" />
有没有办法通过类似的方式实现这一点: ?
【问题讨论】:
-
您尝试使用
System.Configuration.ConfigurationManager.GetSection("sectionpath/section")吗?
标签: asp.net web-config