Any master page issues?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark B

    Any master page issues?

    I have done about 30 pages of a new site. I just experimented with applying
    a global theme that I downloaded from the net. It seemed to work as
    described, applying colors, fonts etc to all pages.

    Now I am thinking to create a Master Page so that I can have:

    - A company logo (top-left)
    - A horizontal navigation bar (top)
    - A standard copyright footer (bottom)

    I have just read through the help file on Master Pages.

    Before I go and:

    - Create a new master page with three 3 sections above
    - Modify the page directive to include: MasterPageFile= "~/Master.master"

    Is there anything I may need to be aware of?

  • Mark Rae [MVP]

    #2
    Re: Any master page issues?

    "Mark B" <none123@none.c omwrote in message
    news:OOb2xW85IH A.4848@TK2MSFTN GP05.phx.gbl...
    I have just read through the help file on Master Pages.
    Is there anything I may need to be aware of?
    I can't think of anything, especially since you've read through the help
    file.

    There are two key things to remember about MasterPages:

    1) they are UserControls - this means that e.g. the MasterPage's Page_Load
    event fires *after* the content page's Page_Load event etc...

    2) they are not somehow the ASP.NET equivalent of framesets - the entire
    page is created every time in a MasterPage / content page scenario...


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • Eliyahu Goldin

      #3
      Re: Any master page issues?

      Not that it should stop you from using master pages, you just need to
      realize that the whole master page will land into the content page. So if
      you have relative url references in the master page, the starting point for
      them will be the directory with the content page, not with the master page.

      --
      Eliyahu Goldin,
      Software Developer
      Microsoft MVP [ASP.NET]




      "Mark B" <none123@none.c omwrote in message
      news:OOb2xW85IH A.4848@TK2MSFTN GP05.phx.gbl...
      >I have done about 30 pages of a new site. I just experimented with applying
      >a global theme that I downloaded from the net. It seemed to work as
      >described, applying colors, fonts etc to all pages.
      >
      Now I am thinking to create a Master Page so that I can have:
      >
      - A company logo (top-left)
      - A horizontal navigation bar (top)
      - A standard copyright footer (bottom)
      >
      I have just read through the help file on Master Pages.
      >
      Before I go and:
      >
      - Create a new master page with three 3 sections above
      - Modify the page directive to include: MasterPageFile= "~/Master.master"
      >
      Is there anything I may need to be aware of?
      >

      Comment

      Working...