[thelist] .asp "if pagename [this]..."

Ken Schaefer ken at adOpenStatic.com
Wed May 26 23:31:49 CDT 2004


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/servervariables.asp?frame=true

You can also check the values by using this code snippet:

<%
For Each objItem in Request.ServerVariables()

    Response.Write ( _
        objItem & " = " & Request.ServerVariables(objItem) & "<br />" &
vbCrLf)

Next
%>

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Russ" <russ at unrealisticexpectations.com>
Subject: [thelist] .asp "if pagename [this]..."


: I'm working through my first .asp website, and as no surprise, the
: client's requested a fairly small change to show a different LI image
: when showing the page that we're currently on.
:
: This is fine and dandy, and it's easy enough, however, I've set up my
: navigation inside of include files, and I'm really not wanting to change
: this, so I'm wondering if there's a way to say:
:
: If pagename is [current pagename]
: Then style = [LI style2]
: Else
: Style = [LI style1]
:
: Thanks for any pointing in the right direction.
:
: Russ



More information about the thelist mailing list