May 12 2006

MasterPage For Each Folder

Category: ASP.NET 2.0 - GeneralBil@l @ 20:45

With ASP.NET 2.0 MasterPages, you can apply MasterPages per folder, how is that done?

<configuration>
  <location path="MyArea">
    <system.web>
      <pages masterPageFile="~/App_MasterPages/MyAreaMaster.master" />
    </system.web>
  </location>
</configuration>

So this way, you have mentioned that folder named MyArea, should have all its pages, the MasterPage called MyAreaMaster.master.

Hope this helps,

Regards

Tags:

Comments are closed