473,383 Members | 1,868 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,383 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 22 '05 #1
4 1769
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 22 '05 #2
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 22 '05 #3
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 22 '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 22 '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/"...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.