Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2003, 02:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default Site navigation

Is there any special code to code the site navigation for a website?

IE. http://www.buy.com/retail/videos/category.asp?loc=323

Look at the "Home > DVD > Action" part.

 
Old December 1st, 2003, 02:30 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are you referring to the breadcrumb bit at the top? That's just some links. You'll have to write that out based on what "section(s)" of the site your user is in.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old December 1st, 2003, 02:43 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

A built in feature like that would be nice for 2.0.

:)

 
Old December 1st, 2003, 02:51 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

How could that be useful? That type of thing is completely subject to site design, placement, layout, etc. And there isn't anything in ASP.net that defines "levels" of an application. That's all up to the developer to construct a site with a hierachical organizational and navigation metaphor.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old December 1st, 2003, 03:01 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It would make people design a certain way and in my opinion the correct way. That way you have good site management. Each 'category' of links like in the example 'DVD' and then 'Action' would be in a folder to avoid site clutter. And the code could read the folder and add it to the site nav. part. IE. Home >> DVD >> Action.

Just a thought.

 
Old December 1st, 2003, 03:08 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

That seems kind of restrictive and inflexible. Building something like this wouldn't really be all that difficult.

If you construct a web application where all the pages inherit from a base page, then you could have shared properties and settings and even a layout that would do all of this automatically for you.

Look here for more.
 
Old December 1st, 2003, 03:14 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I just coded something easy. I'm using a function and I added a label and i take what page the user clicks and add a '>' and what link they clicked on shows up like this: 'Home > Optical Digital Cables'. Simple, but it works for now.
 
Old December 1st, 2003, 06:03 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As Peter already knows some people might do as I have done... For my web application I have only got one .aspx page! There is so many different ways to design your system.

I agree with Peter on this. However I have got some problems with breadcrumbs aswell. This not due to implementation, but rather concept... Is there a standard of how they should work, like an RFC or a W3C recommendation...!?

Jacob.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Site Navigation aspcoder BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 14 May 24th, 2008 05:40 PM
navigation in a web site..... mallikalapati ASP.NET 2.0 Professional 3 February 11th, 2008 12:06 PM
how to add breadcrumb navigation to a LAMP site avail1now PHP How-To 0 February 17th, 2006 05:03 PM
how do i change the site icon on a geocitiies site uprocker2 HTML Code Clinic 2 March 4th, 2005 07:20 AM
Site navigation fortgjort XSLT 0 February 24th, 2004 10:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.