How to have common layout for multiple websites in asp .net?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gagonm
    New Member
    • Oct 2007
    • 26

    #1

    How to have common layout for multiple websites in asp .net?

    Hi
    we are working on a portal which will have multiple websites sites loaded in same container meaning there will be a
    1)Top Header showing Portals name and currently loaded app's name
    2)left hand side frame having menu which will list applications which are independent of one another.Each of these application is hosted on different servers sharing same DNS name for ex .
    i) www.test.com/test1/applications1/application1hom e.aspx
    ii) www.test.com/test1/application2/application2hom e.aspx

    3) Righ hand frame ::this is very individual applications pages will load with there own submenu.

    Now top header and left hand side menu are common across the applications while the contents in right hand frame will application specific. How can I achieve this using master page ,without requiring indivdual application to have same master page copied in there virtual directory
  • gagonm
    New Member
    • Oct 2007
    • 26

    #2
    Any reply??

    Comment

    • prasad599
      New Member
      • Feb 2009
      • 24

      #3
      You can apply Master Page to every content page in a particular folder or every content page in a particular application. You can add a configuration option to the web configuration file rather than adding MasterPageFile attribute to individual content pages.

      for example : FolderA\web.con fig looks likes this

      <configuratio n>
      <system.web>
      <pages masterPageFile= '~/SimpleMaster.ma ster' />
      </system.web>
      </configuration>

      Comment

      Working...