Batch Config file
Batch Config fileThe new <location> element in .NET 2.0 lets you define the settings for specific location. That includes subdirectories in web applications.<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"><system.web><!-- Regularconfiguration settings go here. --></system.web><location path="/MySubDirectory"><system.web><!-- Configuration settings for MySubDirectory go here. --></system.web></location></configuration>
Would you really need it ? My preferred method is have it separated into individual config file.
But is has an interesting attribute allowOverride="false".
<location allowOverride="false" >
This would prevent overrides in the config files at lower level and this is useful for system administrators when they would like to retain certain policies throughout and not allow it to be overridden by some application.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home