October 2010
Intermediate to advanced
1920 pages
73h 55m
English
By default, authorization rules are applied to all pages in a folder and all subfolders. However, you also have the option of using the location element with the authorization element. The location element enables you to apply a set of authorization rules to a folder or page at a particular path.
For example, imagine that you want to password-protect one, and only one, page in a folder. In that case, you can use the location element to specify the path of the single page. The web configuration file in Listing 27.13 password-protects a page named Secret.aspx.
Listing 27.13. Web.Config Protecting a File

You also can ...
Read now
Unlock full access