HTML & page design

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

    HTML & page design

    I am developing a website and would like to minimise the amount of repeated
    code/features. As all pages will follow a standard template it would be
    advantageous to code this page template once then incorporate it as a user
    control or similar.

    The template will basically be a table layout 2 rows and 2 cols:
    top left cell has the logo
    top right cell ha the header
    bottom left cell has the menu
    bottom right cell has the body

    I presently have user controls for all four cells but am having to repeat
    the table on every page which makes updating the main layout a pain as I
    have multiple pages to update this information in. I can create this table
    as a user control then incorporate that into my aspx pages simply enough but
    I need control over the contents of the bottom left and right cells as the
    menu options will vary depending upon the page being displayed as will the
    body of the page (bottom right cell).

    Any suggestions ?

    Thanks

    Murphy


  • CaptainZ

    #2
    RE: HTML & page design

    Dare I use the dreaded word: Frames

    I have seen someone do what you want but maintenance became a major problem when the business decided to put stuff in that the original author didn't think of.

    Comment

    • CaptainZ

      #3
      RE: HTML & page design

      Dare I use the dreaded word: Frames

      I have seen someone do what you want but maintenance became a major problem when the business decided to put stuff in that the original author didn't think of.

      Comment

      • ccallen

        #4
        Re: HTML & page design

        Have you tryed PlaceHolders in the bottom left and bottom right cells
        (WebUserContol) ? That way you can add the disired controls in Page_Load. Or
        the control can be implemented as a composite control.

        "Murphy" <murphy@murphy. com> wrote in message
        news:%23aj7Iw4G EHA.3556@TK2MSF TNGP11.phx.gbl. ..[color=blue]
        > I am developing a website and would like to minimise the amount of[/color]
        repeated[color=blue]
        > code/features. As all pages will follow a standard template it would be
        > advantageous to code this page template once then incorporate it as a user
        > control or similar.
        >
        > The template will basically be a table layout 2 rows and 2 cols:
        > top left cell has the logo
        > top right cell ha the header
        > bottom left cell has the menu
        > bottom right cell has the body
        >
        > I presently have user controls for all four cells but am having to repeat
        > the table on every page which makes updating the main layout a pain as I
        > have multiple pages to update this information in. I can create this table
        > as a user control then incorporate that into my aspx pages simply enough[/color]
        but[color=blue]
        > I need control over the contents of the bottom left and right cells as the
        > menu options will vary depending upon the page being displayed as will the
        > body of the page (bottom right cell).
        >
        > Any suggestions ?
        >
        > Thanks
        >
        > Murphy
        >
        >[/color]


        Comment

        • Murphy

          #5
          Re: HTML &amp; page design

          Thanks I've actually solved the problem using a concept called master pages.



          "ccallen" <ccallen@window pane.com> wrote in message
          news:OL8sQsdIEH A.1048@TK2MSFTN GP12.phx.gbl...[color=blue]
          > Have you tryed PlaceHolders in the bottom left and bottom right cells
          > (WebUserContol) ? That way you can add the disired controls in Page_Load.[/color]
          Or[color=blue]
          > the control can be implemented as a composite control.
          >
          > "Murphy" <murphy@murphy. com> wrote in message
          > news:%23aj7Iw4G EHA.3556@TK2MSF TNGP11.phx.gbl. ..[color=green]
          > > I am developing a website and would like to minimise the amount of[/color]
          > repeated[color=green]
          > > code/features. As all pages will follow a standard template it would be
          > > advantageous to code this page template once then incorporate it as a[/color][/color]
          user[color=blue][color=green]
          > > control or similar.
          > >
          > > The template will basically be a table layout 2 rows and 2 cols:
          > > top left cell has the logo
          > > top right cell ha the header
          > > bottom left cell has the menu
          > > bottom right cell has the body
          > >
          > > I presently have user controls for all four cells but am having to[/color][/color]
          repeat[color=blue][color=green]
          > > the table on every page which makes updating the main layout a pain as I
          > > have multiple pages to update this information in. I can create this[/color][/color]
          table[color=blue][color=green]
          > > as a user control then incorporate that into my aspx pages simply enough[/color]
          > but[color=green]
          > > I need control over the contents of the bottom left and right cells as[/color][/color]
          the[color=blue][color=green]
          > > menu options will vary depending upon the page being displayed as will[/color][/color]
          the[color=blue][color=green]
          > > body of the page (bottom right cell).
          > >
          > > Any suggestions ?
          > >
          > > Thanks
          > >
          > > Murphy
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...