473,320 Members | 1,746 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.

Examples of building web site navigation for ASP.NET site?

Hi, are there any examples that demonstrate how to build an ASP.NET page
with consistent parts of the layout, such as page headers, footers, and
navigation links (such as going into each section like Products, Company,
Services, etc)?

I know there are controls that you can use to build menus like ASP.NET menu.
But I'm talking more about the graphical elements and layout that needs to
be part of each page.

For example when I designed my site in old ASP I had include files. So I
did something like this from each page:

<!-- #INCLUDE VIRTUAL="/top-of-page.inc"-->
main page content goes here
<!-- #INCLUDE VIRTUAL="/bottom-of-page.inc"-->

But in ASP.NET that doesn't seem like a concept that works. Instead it
seems like maybe I have a common class or something that will write out my
headers and footers so I have a consistent look and feel, and so I can just
change nav links in one place as I make changes to the site instead of
having to change it on every page like I would if I had embedded it. Any
examples of how to handle this the "correct" or ideal way in ASP.NET would
be MUCH APPRECIATED. Thank you.
Nov 18 '05 #1
2 1151
pmb
You can implement a so-called "User Control". It works approximately
like this:

<%@ Register TagPrefix="myctl" TagName="Footer" Src="footer.ascx" %>
.... Later on: ...
<myctl:Footer id="footer1" runat="server" />

Use the keyword "User Control" to find it in the documentation pages.

Good luck!

On Thu, 10 Jun 2004 18:17:22 -0400, "Jason Hanks" <no******@acct.com>
wrote:
Hi, are there any examples that demonstrate how to build an ASP.NET page
with consistent parts of the layout, such as page headers, footers, and
navigation links (such as going into each section like Products, Company,
Services, etc)?

I know there are controls that you can use to build menus like ASP.NET menu.
But I'm talking more about the graphical elements and layout that needs to
be part of each page.

For example when I designed my site in old ASP I had include files. So I
did something like this from each page:

<!-- #INCLUDE VIRTUAL="/top-of-page.inc"-->
main page content goes here
<!-- #INCLUDE VIRTUAL="/bottom-of-page.inc"-->

But in ASP.NET that doesn't seem like a concept that works. Instead it
seems like maybe I have a common class or something that will write out my
headers and footers so I have a consistent look and feel, and so I can just
change nav links in one place as I make changes to the site instead of
having to change it on every page like I would if I had embedded it. Any
examples of how to handle this the "correct" or ideal way in ASP.NET would
be MUCH APPRECIATED. Thank you.


Nov 18 '05 #2
Are there any samples like in the VB.NET resource kit or somewhere else
somecan can point me to where I can get a good look at how the site
navigation html source can be centralized in one location/class/file?
"pmb" <pa********@tokyo.com> wrote in message
news:hl********************************@4ax.com...
You can implement a so-called "User Control". It works approximately
like this:

<%@ Register TagPrefix="myctl" TagName="Footer" Src="footer.ascx" %>
... Later on: ...
<myctl:Footer id="footer1" runat="server" />

Use the keyword "User Control" to find it in the documentation pages.

Good luck!

On Thu, 10 Jun 2004 18:17:22 -0400, "Jason Hanks" <no******@acct.com>
wrote:
Hi, are there any examples that demonstrate how to build an ASP.NET page
with consistent parts of the layout, such as page headers, footers, and
navigation links (such as going into each section like Products, Company,
Services, etc)?

I know there are controls that you can use to build menus like ASP.NET menu.But I'm talking more about the graphical elements and layout that needs tobe part of each page.

For example when I designed my site in old ASP I had include files. So I
did something like this from each page:

<!-- #INCLUDE VIRTUAL="/top-of-page.inc"-->
main page content goes here
<!-- #INCLUDE VIRTUAL="/bottom-of-page.inc"-->

But in ASP.NET that doesn't seem like a concept that works. Instead it
seems like maybe I have a common class or something that will write out myheaders and footers so I have a consistent look and feel, and so I can justchange nav links in one place as I make changes to the site instead of
having to change it on every page like I would if I had embedded it. Any
examples of how to handle this the "correct" or ideal way in ASP.NET wouldbe MUCH APPRECIATED. Thank you.

Nov 18 '05 #3

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

Similar topics

5
by: Mike Judkins | last post by:
I'm looking for examples of websites (preferably large and well known companies, not personal sites or developer-to-developer sites) that use XML and XSLT as a technology platform from which to...
2
by: Jeff Thies | last post by:
I have a site with javascript navigation menus (it's in the design spec). There's a bit too many pages to do a bread crumb type alternate nav, and no natural index page for each site section. ...
40
by: Tools | last post by:
What's the best browser to test for website accessibility? Is there a free screen reader I can use to test how my site reads best?
1
by: Richard Jenkins | last post by:
Hi. I'd appreciate some comments/help with this site: http://www.moonremovals.co.uk/new The aim is to use css positioning to recreate something similar to: <table> <tr> <td...
2
by: Robby | last post by:
Hello, I am trying to build a component that in turn usues a designer. How does the designer retrieve the projects datasets and tables? Are there any good examples of building a designer...
1
by: digitalcolony | last post by:
I'm looking for examples of content rich sites that use minimal navigation and are intuitive for the users. Has anyone seen a site that can handle hundreds of articles that is still user-friendly...
9
by: Tim Dietz | last post by:
Due to lack of time, I have used MS FrontPage to create a few web sites. I've grown to despise it and want (and now have the time) to really learn HTML, CSS, etc. to create new sites. One feature...
71
by: Murray R. Van Luyn | last post by:
Hi, Since I have made changes to my website it's been a complete flop. According to the logs, as soon as visitors have downloaded the index page they are off. I can't figure out why? ...
2
tharden3
by: tharden3 | last post by:
I have a question for you guys, I'm designing a website. Before I go any further, I'd like to get my navigation bars on the left side up and running. The site is themed to a bumblebee 'black and...
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...
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...
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
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
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...

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.