473,382 Members | 1,409 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,382 software developers and data experts.

Keeping Track Of User Navigation For Titles

Suppose you have a site structure that looks like this:

|--Countries.asp
| |
|--Region.asp
| |
|--Cities.asp
| |
|--Population.asp

You start at the Countries page with a list of Countries.
If you click on UK, the site would take you to the Region
page and display the following at the top:

UK

This would give some context to the list of regions the
user was looking at. If the user then clicks Midlands to
view Cities in the Midlands. The Cities page would
display:

UK > Midlands

To give a context to the list of cities. Then if the user
clicked Birmingham to view population data I'd want the
following at the top of the population page:

UK > Midlands > Birmingham

I've been trying to do this by creating a session variable
in the countries page, and just adding to it as I go
along. However I've just discovered a major flaw with
this approach. If I click the back button and then
refresh, I end up with something like this:

UK > Midlands > Birmingham > Midlands

Which is obviously wrong. To compound matters the user
could go from Countries directly to population, so it'd
need to read:

USA > Population

Or they could goto population from region, ie:

USA > East Coast > Population

In this situation, how could track the movements of the
user to correctly display navigation information?

TIA

Colin
Jul 19 '05 #1
2 1532
use a separate session variable for each level in your hierarchy.
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Colin Steadman" <an*******@discussions.microsoft.com> wrote in message
news:16****************************@phx.gbl...
Suppose you have a site structure that looks like this:

|--Countries.asp
| |
|--Region.asp
| |
|--Cities.asp
| |
|--Population.asp

You start at the Countries page with a list of Countries.
If you click on UK, the site would take you to the Region
page and display the following at the top:

UK

This would give some context to the list of regions the
user was looking at. If the user then clicks Midlands to
view Cities in the Midlands. The Cities page would
display:

UK > Midlands

To give a context to the list of cities. Then if the user
clicked Birmingham to view population data I'd want the
following at the top of the population page:

UK > Midlands > Birmingham

I've been trying to do this by creating a session variable
in the countries page, and just adding to it as I go
along. However I've just discovered a major flaw with
this approach. If I click the back button and then
refresh, I end up with something like this:

UK > Midlands > Birmingham > Midlands

Which is obviously wrong. To compound matters the user
could go from Countries directly to population, so it'd
need to read:

USA > Population

Or they could goto population from region, ie:

USA > East Coast > Population

In this situation, how could track the movements of the
user to correctly display navigation information?

TIA

Colin

Jul 19 '05 #2
setup a hierarchy, store it wherever (db, xml, text, etc).
Then on each page have an ID that coresponds to a level in this hierarchy
(1,2,3,(n))
When you build the display of each page, look up this page's value and write
the hierarchy to that point.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Colin Steadman" <an*******@discussions.microsoft.com> wrote in message
news:16****************************@phx.gbl...
Suppose you have a site structure that looks like this:

|--Countries.asp
| |
|--Region.asp
| |
|--Cities.asp
| |
|--Population.asp

You start at the Countries page with a list of Countries.
If you click on UK, the site would take you to the Region
page and display the following at the top:

UK

This would give some context to the list of regions the
user was looking at. If the user then clicks Midlands to
view Cities in the Midlands. The Cities page would
display:

UK > Midlands

To give a context to the list of cities. Then if the user
clicked Birmingham to view population data I'd want the
following at the top of the population page:

UK > Midlands > Birmingham

I've been trying to do this by creating a session variable
in the countries page, and just adding to it as I go
along. However I've just discovered a major flaw with
this approach. If I click the back button and then
refresh, I end up with something like this:

UK > Midlands > Birmingham > Midlands

Which is obviously wrong. To compound matters the user
could go from Countries directly to population, so it'd
need to read:

USA > Population

Or they could goto population from region, ie:

USA > East Coast > Population

In this situation, how could track the movements of the
user to correctly display navigation information?

TIA

Colin

Jul 19 '05 #3

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

Similar topics

6
by: Astra | last post by:
Hi All I've noticed on quite a few ASP sites that when they have a 'MyAccount' section they transfer the site to https and then when you have logged into your account successfully and gone back...
179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
1
by: Steve Gadlin | last post by:
Hi there! First off, let me apologize for the basic question... I'm very new to .NET programming. I'm building a web site using VB.NET, and am trying to include several custom user controls. ...
2
by: Sandman | last post by:
Just looking for suggestion on how to do this in my Web application. The goal is to keep track of what a user has and hasn't read and present him or her with new material I am currently doing...
9
by: Alfred Taylor | last post by:
I'm testing the waters of n-tier development and I ran into a scenario that I'm not sure what the best solution would be. I have a Company object which contains a collection of contacts retrieved...
0
by: John | last post by:
Hi all, What methods are used to keep track of when dynamic user controls must be loaded and when not? Regards John.
2
by: metaperl | last post by:
I'm actually taking Microsoft's 2779 and just finished a lab where we kept track of our changes to the database. However, I'm not happy with the scripts interface because it does not tell me the...
3
by: LLM | last post by:
I know in ASP.NET, I can use the User.Identity to keep track of the logged in user. How can I accomplish the same task with a windows app short of passing the id to each form. Thank you in...
10
by: Karlo Lozovina | last post by:
Hi, what's the best way to keep track of user-made subclasses, and instances of those subclasses? I just need a pointer in a right direction... thanks. -- Karlo Lozovina -- Mosor
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.