473,379 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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
Nov 18 '05 #1
4 1452
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.
Nov 18 '05 #2
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.
Nov 18 '05 #3
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" <mu****@murphy.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #4
Thanks I've actually solved the problem using a concept called master pages.

www.wilsondotnet.com

"ccallen" <cc*****@windowpane.com> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
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" <mu****@murphy.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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


Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: James | last post by:
What is the best method for creating a Web Page that uses both PHP and HTML ? <HTML> BLA BLA BLA BLA BLA
18
by: Gr8DaddyG | last post by:
I am trying to paste the following code into the HTLM editor of my webpage: <script...
72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
11
by: Nathan Sokalski | last post by:
I add several JavaScript events (onchange, onkeypress, etc.) to Controls using the Add method of the Attributes collection. However, if the JavaScript code contains certain characters, such as & or...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
5
by: Hymer | last post by:
Hello, I am trying to create the html that someone would copy and paste to create a link to our site. I want them to see the entire code and wrote the following html: <p>&lt;p>&lt;a...
5
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET ...
2
by: jackrose | last post by:
sir the below script is wap script in xml,if possible to converet html or php plz edit and put here sir <? //include the space function found on php.net Include ('data/function_dskspace.php'); ...
10
by: jollysr | last post by:
Could someone please help me convert the following XML to HTML page? <?xml version="1.0" encoding="UTF-16"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.