| |||||
Configuration <location> SettingsASP.NET Web Applications ASP.NET Configuration Hierarchical Configuration Architecture Configuration settings can be applied to specific resources by using a <location> tag with an appropriate path attribute. The path attribute can be used to identify a specific file or child directory to which unique configuration settings apply. For example, the following configuration file specifies settings at three levels:
<configuration>
<system.web>
<sessionState cookieless = "true" timeout = "10"
server = "localhost" port = "42424" />
</system.web>
<!-- Configuration for the "Sub1" subdirectory -->
<location path = "sub1">
<system.web>
<httpHandlers>
<add verb = "*" path = "Sub1.Scott" type = "Sub1.Scott" />
<add verb = "*" path = "Sub1.David" type = "Sub1.David" />
</httpHandlers>
</system.web>
</location>
<!-- Configuration for the "Sub2" subdirectory -->
<location path = "sub2">
<system.web>
<httpHandlers>
<add verb = "*" path = "Sub2.Scott" type = "Sub2.Scott" />
<add verb = "*" path = "Sub2.David" type = "Sub2.David" />
</httpHandlers>
</system.web>
</location>
</configuration>
See AlsoASP.NET Configuration Sections Configuration Inheritance Locking Configuration Settings |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme