.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 3rd, 2003, 04:21 PM
bramsey bramsey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: USA
Posts: 226 bramsey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 40 m 35 sec
Reputation Power: 9
site navigation

I have a huge site to redo in asp.net. The site is currently coded in asp. There is a ton of navigation in the site. I want to be able to maintain it very easily without having to edit every page in the site if it changes.

In the asp site, we have used an array to hold the navigation and displayed it using elements in the array and a bunch of if then statements. There are on, off, at, primary, secondary, and tertiary conditions for the nav. Depending on what it is, a certain color bullet shows up next to it and the background color behind the link changes. It is pretty complex.

I have a file holding the array, a file holding the table structure of the nav with the if then statments deploying certain html depending on the array elements and the actual pages.

I don't think that I can do this in .NET very easily. Does anyone have a suggestion on how to manage large amounts of navigation that must have on, off, at, primary, secondary and tertiary navigation structures? All examples I have seen (tree view) do not work for what I need. Is there a better way to handle this?

I have attached an example of the navigation control file with the if then statments. I don't know if it helps or not.

Thank you for any suggestions.
Attached Files
File Type: asp nav_control.asp (3.9 KB, 160 views)

Reply With Quote
  #2  
Old December 9th, 2003, 01:07 PM
dkode dkode is offline
PHP/PERL/.NET Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Daytona Beach, Florida
Posts: 36 dkode User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 sec
Reputation Power: 8
Send a message via AIM to dkode
dude:

I was faced with a very similar problem. In the end I converted the whole navigation scheme into an xml file. With xml you can have all sorts of different entries and attributes so you can define everything you need.

In the end mine worked like this:

The navigation had to accomodate 4 different user "roles" if you will.

I had <Button /> Nodes that defined all of the buttons the navigation would have along with what groups they belonged in. Then I had a <UserRole> node that I had all the different user roles and what buttons each one had access to. This made the navigation very scalable and maintainable since the whole navigation could be handled from one xml file.

Take a look at all the xml features of dotnet. what your're looking for is in there.
__________________
"Mankind cannot define memory, yet it defines mankind"

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > site navigation


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT