Centralized Master Pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lucas Davenport

    Centralized Master Pages

    I have the task of creating several one-page websites for our subsidiaries. I
    would like to use the MasterPage concept with this task. The sites will all
    be separate site, located in their own folder. Essentially, I would like to
    know if I can create a centralized Master Page and have it apply to multiple
    web sites. Kind of like using CSS to change the look and feel of all your
    page, except, the external style sheet would control all the individual
    websites on the IIS box.

    Hope this makes sense and thanks in advance.
  • Peter Bromberg [C# MVP]

    #2
    RE: Centralized Master Pages

    Let's say you copy your MasterPage(s) for all the "sites" into a single
    folder under your IIS. Each of your applications (sites) can then create a
    virtual directory that points to that common folder, and your separate apps
    can set their MasterPageFile property to point to that vRoot and the
    masterpage file.
    This has the additional benefit that if you decide to update a Master, all
    the sites will pick up the change automatically.
    Peter

    --
    Co-founder, Eggheadcafe.com developer portal:

    UnBlog:





    "Lucas Davenport" wrote:
    I have the task of creating several one-page websites for our subsidiaries. I
    would like to use the MasterPage concept with this task. The sites will all
    be separate site, located in their own folder. Essentially, I would like to
    know if I can create a centralized Master Page and have it apply to multiple
    web sites. Kind of like using CSS to change the look and feel of all your
    page, except, the external style sheet would control all the individual
    websites on the IIS box.
    >
    Hope this makes sense and thanks in advance.

    Comment

    Working...