473,785 Members | 3,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1407
"poifull" <po*******@yaho o.com> wrote in
news:wo******** ********@tornad o.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********@rog ers.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********@rog ers.com> wrote in message
news:Xn******** *************** ****@127.0.0.1. ..
"poifull" <po*******@yaho o.com> wrote in
news:wo******** ********@tornad o.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********@rog ers.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*********@RE MOVETHISTEXTmet romilwaukee.com > wrote in
news:u5******** ******@TK2MSFTN GP12.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********@rog ers.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
1713
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 putting a file called 'index.php' and a file called 'content.php' in each directory. 'index.php' would set a variable called $content with the full path for 'content.php' then it would have an include() statement which called a script outside...
0
976
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 OnPreRender(System.EventArgs e) { this.Controls.AddAt(1,LoadControl("Header.ascx"));
6
1376
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 strangely enough, not a single one works with my design. My format is quite simple: large table direcly under the <HTML> tag contains a header usercontrol, a left side menu usercontrol and then page content. Here is a simplified representation of...
4
1793
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 column (b.php) that remain constant. Depending upon which heading is clicked in a menu row the user gets different information up in the main site area (three different versions of "c"). And a footer (d.php). What I think I have done is loading...
1
1852
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 program code for tab in the header part, <t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="css/jscookmenu"> <t:navigationMenuItem id="nav_2" itemLabel="Health Record" ...
8
13536
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" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
2573
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 iframe and hence i am not loading the entire menu and header for each request. When I try and port the above model to Master Page 1) The menu ( I thot of having the Menu Web control), Header would be moved to the master page.
11
2527
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 sugestions guys. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
1
3147
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 information is). I've got the product name at the top, left aligned and typically as a two lined header, and I'd like to add a small logo to the right of that, either right beside it, or in the far right corner. could anyone help me with how to set...
1
2759
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. ...... writer.RenderBeginTag(HtmlTextWriterTag.Head) ....... If I want to use DynamicHoverStyle for the menu I am getting the error "Using Menu.DynamicHoverStyle requires Page.Header to be non-null".
0
9480
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
10147
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
10085
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
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
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...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
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();...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2877
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.