473,320 Members | 2,164 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,320 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 1766
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.