Detect page and querystrings

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
MartinG
Beginner
Beginner
Posts: 1
Joined: Mon Sep 22, 2003 5:15 pm

Detect page and querystrings

Post by MartinG »

Is there any way to control how the menu detects a page from the current URL and querystring so that both /default.aspx?pid=3 and /default.aspx?pid=3&article=1 highlight the same menu option?
User avatar
DMLCo
Advanced
Advanced
Posts: 21
Joined: Fri Sep 19, 2003 4:29 pm
Location: Houston, TX
Contact:

Post by DMLCo »

Not intrisically in the menu that I know of. Would love to hear of one ...

However, I do this by code in the file that builds the arrays--you can parse it there, and match up, say, menuIDs, then use something like (using old ASP syntax) this within the aI() call.

Code: Select all

<% if currentMenuID = MenuID %>onbgcolor=#FFFFFF;offbgcolor=#FFFFFF;etc. <% end if %>
-Daniel
DMLCo
Solving the Challenges Where People & Technology Meet
Featuring DMLContent Content Management System
http://www.dmlco.com/
Post Reply