map path info

Results 1 to 2 of 2

Thread: map path info

  1. #1
    Join Date
    Dec 1969

    Default map path info

    Hi<BR><BR>I want to search a tabel depending on what folder the current asp page is on. I am using mappath methid to return current path of current page. How might I compare the contents of the mappath string with the folder name so I can tell the sql query which records to find. I guess this is easy i just cant see it. (inStr)<BR>thanks in advance<BR>Andrew

  2. #2
    Join Date
    Dec 1969

    Default RE: map path info

    &#060;%<BR> Dim myFile<BR> Dim myFileArray<BR> Dim myFileArrayUB<BR> Dim foldername<BR> <BR> myFile = Server.MapPath(Request.ServerVariables("SCRIPT_NAM E"))<BR><BR> myFileArray = Split(myFile,"\")<BR> myFileArrayUB = UBOUND(myFileArray)<BR> foldername = myFileArray(myFileArrayUB - 1)<BR>%&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts