HTML & page design

M

Murphy

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
 
G

Guest

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.
 
C

ccallen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top