Seeking assistance with setting a CSS class for the current page in an include file that contains the primary navigation menu. Here is my current progress:
public function GetFileName()
Dim files, url, segments, current
'obtain current URL from server variables
url = Request.ServerVariables("path_info")
segments = split(url,"/")
'extract last segment
url = segments(ubound(segments))
GetFileName = url
end function
if GetFileName = "index.asp" then
current = "current"
else
current = ""
end if
I believe utilizing a Select Case statement would be ideal here, but unsure of how to proceed? Grateful for any guidance provided!