473,799 Members | 3,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1799
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******** ********@TK2MSF TNGP11.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******** ********@TK2MSF TNGP11.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*****@window pane.com> wrote in message
news:OL******** ******@TK2MSFTN GP12.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******** ********@TK2MSF TNGP11.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*****@window pane.com> wrote in message
news:OL******** ******@TK2MSFTN GP12.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******** ********@TK2MSF TNGP11.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
4226
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
2848
by: Gr8DaddyG | last post by:
I am trying to paste the following code into the HTLM editor of my webpage: <script src='http://voap.weather.com/weather/oap/USFM0004?template=EVNTV&par=1004845350&unit=0&key=470c828c1eed4306eeef1f0c11d4bf45'></script> But, it will not display correctly. Here's exactly what it displays: src='http://voap.weather.com/weather/oap/USFM0004?template=EVNTV&par=1004845350&unit=0&key=470c828c1eed4306eeef1f0c11d4bf45'></script> It's...
72
5446
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 (dreamweaver and the like), they are all at the lowest level of programming (something like assembly as oposed to C++ etc.). These tools create "brain-dead" developers that constantly have to plough through tons of tags to do the simplest thing. ...
6
5518
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; DataBinder.Eval(Container.DataItem,"StoreEmail") &amp; "&amp;Subject=" &amp; DataBinder.Eval(Container.DataItem,"ProductName") ....
11
2789
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 < or several others, it converts them to html, such as &amp; or &lt; which can sometimes cause my scripts not to work. How can I prevent ASP.NET from doing this? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
18
25007
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, that IE7 does not seem to offer any way to control the font size of a text input element.
5
2311
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 href="http://www.mysite.com"Usability, User Interface Design, &amp; Ergonomics &lt;/a> - Internet Resources &amp; Consulting by Usernomics.&lt;/p> </p>
5
2453
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 /* CSS for Marlon Sanders site */ html, body {
2
1382
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'); //headers header("Content-type: text/vnd.wap.wml"); echo "<?xml version=\"1.0\"?>"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""." \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; //sadhu's genius one line fix $page = $_GET; //how...
10
2756
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/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <ns1:doGoogleSearchResponse xmlns:ns1="urn:GoogleSearch"...
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10482
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10225
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.