[thelist] ASP question - navigation
Mike Carlson
mike at mcarlson.net
Fri Oct 29 09:56:40 CDT 2004
Something like this?
If instr(1,Request.QueryString,"deployment",0) = 0 then
'we didn't find it, do whatever
Else
'its in there somewhere now do something with it
End If
Request.QueryString will return the entire string after the "?" in the URL.
--Mike Carlson
mike at mcarlson.net
http://www.uselessthoughts.com
________________________________
From: thelist-bounces at lists.evolt.org on behalf of Tom Dell'Aringa
Sent: Fri 10/29/2004 8:20 AM
To: thelist
Subject: [thelist] ASP question - navigation
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/
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list