473,323 Members | 1,547 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,323 software developers and data experts.

Web Page Header and Menu

Hi everyone,

I would like to develop a header and HTML menu system for most of the web
pages on my web site. What is the best solution for this scenerio? (HTML
Control, Server Control...)

Thanks for your response

Nov 19 '05 #1
4 1388
"poifull" <po*******@yahoo.com> wrote in
news:wo****************@tornado.texas.rr.com:
Hi everyone,

I would like to develop a header and HTML menu system for most of the
web pages on my web site. What is the best solution for this
scenerio? (HTML Control, Server Control...)

Take a look at Paul Wilson's ASP.NET MasterPages.

http://authors.aspalliance.com/PaulW...rticles/?id=14
MasterPages is included with .NET 2.0

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
Paul Wilson's ASP.NET MasterPages does not answer the question. The OP wants
to know which type of control to use in the top-most section of a page; a
user control, a web control or a server control?

Me? Right now I have user controls which are text snippets of HTML and some
HTML may be marked runat="server" to enable that element to be used as a web
control.

The downside to user controls is they can be thought of as text snippets of
declarative HTML and as such must be copied and pasted into each page in the
project. User controls are easiest and most efficient to use in early design
phase and prototypes as they have designer support in application such as
FrontPage and Dreamweaver where they can be rapidaly designed and
re-designed without mangling or deletion of HTML source the way Visual
Studio.NET designer does.

Now a final word about Master Pages would not be complete without giving
Paul Wilson his due respect but acknowledging that his ASP.NET 1.1 solution
has been deprecated by the presence of ASP.NET 2.0 Master Pages that are now
part of the .NET Framework.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@127.0.0.1...
"poifull" <po*******@yahoo.com> wrote in
news:wo****************@tornado.texas.rr.com:
Hi everyone,

I would like to develop a header and HTML menu system for most of the
web pages on my web site. What is the best solution for this
scenerio? (HTML Control, Server Control...)

Take a look at Paul Wilson's ASP.NET MasterPages.

http://authors.aspalliance.com/PaulW...rticles/?id=14
MasterPages is included with .NET 2.0

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 19 '05 #3
>>The downside to user controls is they can be thought of as text
snippets of
declarative HTML and as such must be copied and pasted into each page
in the
project. <<

You can place the user controls into your base page. The only caveat
might be that you probably will need a standard format (perhaps using a
table) for each page so that the user controls are placed into the
proper positions on the page.

Bill E.

Nov 19 '05 #4
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in
news:u5**************@TK2MSFTNGP12.phx.gbl:
Paul Wilson's ASP.NET MasterPages does not answer the question. The OP
wants to know which type of control to use in the top-most section of
a page; a user control, a web control or a server control?


Yes it does - you can create a content region for the header and place
whatever you like in there - be it literal text, a user control, etc.

When you're using masterpages, what control you put in there is of minor
importance.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #5

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

Similar topics

3
by: J Smith | last post by:
I'm making a website where each page has the same design, obviously its a bad idea to put the same code/html in each page so what is the best way to do this? What I'm doing at the moment is...
0
by: suzy | last post by:
i have managed to get page templates working by creating a template.cs file with the following code. i hope this is the best way?!?! public class BasePage : Page { protected override void...
6
by: Mitch | last post by:
I'm trying to use page inheritance so that I can derive all web pages from a template. There are a bunch of examples at this site http://authors.aspalliance.com/PaulWilson/Articles/?id=1, but...
4
by: Garry Jones | last post by:
I have recently constructed a website using a lot of php script (self taught). I now wonder if I should have construted the site in a different way. The page contains a header (a.php) and left...
1
by: Vinutha | last post by:
I have a frame with header, menu & body. I have included one tab button in header part, and when i clicked that button, i want that resulting page to be opened in the body part. This is my...
8
by: Amit | last post by:
I have a master page and a content page but the stylesheet isnt getting applied like how it looks in visual studio design view. The master page is defined like this: <%@ Master Language="VB"...
2
by: n# | last post by:
I have an old existing website with a Header/ Left Hand Menu and a iframe as the main body content, adjacent to the menu. So for every click on the menu item, I used to load a aspx page on the...
11
by: Benny123 | last post by:
Im very new to the who css lark so am struggling quite a bit. ive managed to build a basic div centred box with css embedded in my html. It looks fine in IE but loses all size in firefox. Any...
1
by: rsteph | last post by:
I've got some product information pages, with images and text, all setup within a table. I'm trying to add a small image in the upper right hand corner of the content div (where all the important...
1
by: michael | last post by:
I want to include a simple menu in a usercontrol on a page. The page inherits a BaseClass that overrides Render method, including header control. Header is dynamically generated. .........
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
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: 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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.