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?

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

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

Hope this helps,



Comments are closed