Pagename

I want to isolate an item from within a menu.inc file on the condition that a particular file is including the menu. Eg. Code:

<% if pagename = page1.asp then %>
<li> <a href="abc.asp">Option1</a></li>
<% ElseIf pagename = page2.asp then %>
<li> <a href="def.asp">Option2</a></li>
<% EndIf %>

How to I declare the pagename? I could embed something in the header of the .asp page before the menu.inc is called but not sure if that would work nor how to do it. Any ideas?

View Replies


ADVERTISEMENT

ServerVariables("URL") Return Incorrect Pagename

From Page1.asp, I use "Server.transfer" to "REDIRECT" to another asp page
(page2.asp),
in page2.asp I use Request.ServerVariables("URL") and
Request.ServerVariables("REFERER") to get the lastpage and the actual page,
this method (or property) return incorrect values: "Page1.asp" and ""

Why?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved