Forum Moderators: open
If you have .NET check Request.Url.AbsolutePath and the whole Request.Url class
You're going to have to parse out the folders. I do this:
arrayFolders = split(Request.Url.AbsolutePath, "/")
then throw out the first and last array element.
Let say:
Request.Url.AbsolotePath = "/First/Second/MyPage.aspx"
then arrayFolders = split(Request.Url.AbsolutePath, "/"
would yield the following array:
arrayFolders(0) = ""
arrayFolders(1) = "First"
arrayFolders(2) = "Second"
arrayFolders(3) = "MyPage.aspx"