- Aug 24, 2001
- 1,590
- 0
- 0
Ok, so I have this navigation bar wich should show the links from a given section only when the user is browsing that specific portion of the site. Example:
The nav bar shows items like this:
Section 1
Link 1.1
Link 1.2
Link 1.3
Section 2
Link 2.1
Link 2.2
...
Etc.
So, when the user is browsing section 1, the navbar should only display the links from that section, hiding all the items from section 2:
User location: www.site.com/section1/
Nav bar:
Section 1
Link 1.1
Link 1.2
Link 1.3
Section 2
Section 3
...
Section 5
I've come up with this idea: Check the URL and display the correct items, like this:
<% If Request.ServerVariables("URL") ="/section1/" Then %>
Link 1.1
Link 1.2
Link 1.3
<% End If %>
This should show the correct itwems whenever the user is browsing the "section1" directory. However, it's not working at all.
Any ideas?
The nav bar shows items like this:
Section 1
Link 1.1
Link 1.2
Link 1.3
Section 2
Link 2.1
Link 2.2
...
Etc.
So, when the user is browsing section 1, the navbar should only display the links from that section, hiding all the items from section 2:
User location: www.site.com/section1/
Nav bar:
Section 1
Link 1.1
Link 1.2
Link 1.3
Section 2
Section 3
...
Section 5
I've come up with this idea: Check the URL and display the correct items, like this:
<% If Request.ServerVariables("URL") ="/section1/" Then %>
Link 1.1
Link 1.2
Link 1.3
<% End If %>
This should show the correct itwems whenever the user is browsing the "section1" directory. However, it's not working at all.
Any ideas?