david_stev
04-03-2003, 10:00 AM
What I want to do is have one include for my nav, but not write out absolute url's.
To do this I need to pull in the url then set a level var on the link.
The code I have tried so far looks like this
<%
dim Level = ""
Page = Request.ServerVariables("PATH_INFO")
do until InStr(Page, "/") = 0
Level = Level & "../"
loop
%>
But this results in the page timing out ie a never ending loop.
Any help would be greatly appreciated.
Thank You in advance:confused:
To do this I need to pull in the url then set a level var on the link.
The code I have tried so far looks like this
<%
dim Level = ""
Page = Request.ServerVariables("PATH_INFO")
do until InStr(Page, "/") = 0
Level = Level & "../"
loop
%>
But this results in the page timing out ie a never ending loop.
Any help would be greatly appreciated.
Thank You in advance:confused: