October 2010
Intermediate to advanced
1920 pages
73h 55m
English
By default, the settings in a Machine.config or Web.config file are applied to all pages in the same folder and below. However, if you have the need, you can also apply configuration settings to a particular path. For example, you can apply configuration settings to a particular subfolder or even a particular page.
You apply configuration settings to a particular path by using the <location> element. For example, the web configuration file in Listing 34.1 enables password-protection for a single file named Secret.aspx.
Listing 34.1. Web.config

If you attempt to request the Secret.aspx page, ...
Read now
Unlock full access