【发布时间】:2011-04-25 17:57:17
【问题描述】:
这次换个小问题...
有没有办法遍历 web.config 中的“位置”元素?
<configuration>
...
<location path="some/path">
<system.web>
<authorization users="*" />
</system.web>
</location>
<location path="some/other/path">
<system.web>
<authorization users="?" />
</system.web>
</location>
...
<configuration>
...并说有类似的输出:
<table>
<tr>
<td>some/path</td>
<td>authorization: *</td>
</tr>
<tr>
<td>some/other/path</td>
<td>authorization: ?</td>
</tr>
</table>
干杯:)
【问题讨论】:
标签: c# .net asp.net configuration iis-7