ASP.NET Tutorial/Configuration/masterPageFile
Версия от 15:30, 26 мая 2010; (обсуждение)
Registering Master Pages in Web Configuration
Apply the SimpleMaster.master Master Page to every page contained in the same folder (or subfolder) as the web configuration file.
A MasterPageFile attribute in a content page takes precedence over a Master Page specified in the web configuration file.
File: FolderA\Web.Config
<configuration>
<system.web>
<pages masterPageFile="~/SimpleMaster.master" />
</system.web>
</configuration>