Using Elements : Introduction « Configuration « ASP.NET Tutorial






The following web.config file uses the <location> element to create two groups of settings.
One for the current directory and one that applies only to files in the subdirectory named Secure:

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <system.web>
        <!-Basic configuration settings go here. -->
    </system.web>

    <location path="/Secure">
        <system.web>
            <!-Configuration settings for the Secure subdirectory go here. -->
        </system.web>
    </location>
</configuration>








16.1.Introduction
16.1.1.Overview of Website Configuration
16.1.2.Applying Configuration Settings to a Particular Path
16.1.3.The web.config File
16.1.4.Using Elements
16.1.5.Locking Configuration Settings
16.1.6.Lock the debug attribute, and only the debug attribute, of the element.
16.1.7.Adding Custom Application Settings
16.1.8.Placing Configuration Settings in an External File
16.1.9.Opening a Configuration File on a Remote Server