[thelist] ASP question - navigation
Tom Dell'Aringa
pixelmech at yahoo.com
Fri Oct 29 08:20:32 CDT 2004
Hi folks,
I'm trying to build a dynamic navigation so I don't have to put variables in every page. I'm super
rusty in ASP so I'm having some trouble.
I have a simple styled UL that is a horizontal navigation. To indicate the current page I throw an
ID on the HREF.
So using ASP like this:
<%
scriptname = request.servervariables("script_name")
%>
I can get my path where the page rests:
/blah/Handbook/Deployment/somepage.asp
The key think I need to get is "Deployment" out of these URLs - that is the section they are in.
How in ASP can I test for deployment so I can indicate the correct LI item as current?
Psuedo code I want is:
if
url contains "Deployment"
then
LI item deployment gets "current" ID
end if
TIA
Tom
=====
Get Firefox! : http://www.pixelmech.com/
More information about the thelist
mailing list