October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You can apply a Master Page to every content page in a particular folder or every content page in an entire application. Rather than add a MasterPageFile attribute to individual content pages, you can add a configuration option to the web configuration file.
For example, the web configuration file in Listing 5.12 applies the SimpleMaster.master Master Page to every page contained in the same folder (or subfolder) as the web configuration file.
Listing 5.12. FolderA\Web.Config

The Master Page is applied only to content pages. If a page does not contain any Content controls—it is a normal ASP.NET page—the ...
Read now
Unlock full access