Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buildind navigation path
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00822302
Message ID:
00822903
Vues:
13
There are a few ways that you can do this...

A true navigation path requires that you save this information somewhere. The way I would do that usually is to store this information in a Session variable and just keep appending to it until you hit back to some starting point. It would also have to have logic to go backwards so if you hit the same link you were at before it would be able to clear out hte rest and start from there.

Another more generic approach that also works in most places is just to use the data that's available to you from the database. If you're in a store and you're on an item you know the category you came from. So it's not difficult to dynamically generate:

Home / Category / Item

However it looks like your scenario is slightly different because you also want to track rpevious items etc in which case you have to build a link tree somehow. You can do that with plain strings or as Claudio pointed out in XML format. I would probably stick with strings because this is more lightweight.


+++ Rick ---



>I want to build a control for put the navigation path.. I mean:
>
>Home
> Store
> Product1
> Product2
> Contact
> Support
>
>
>So, if i'm home, in the top of the page (all with ):
>
>
Home
>
>In Product2
>
>
Home / Store / Product 2
>
>In Support
>
>
Home / Support
>
>And that..
>
>How do this?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform