Prev   Next

Back to the top of the FAQ

Q. I am trying to use server.MapPath on an AuthentiX protected directory but I cannot get it to work!

A. I have run up against this problem with mappath also. I use this to get around it:


PROTECTED_SUBDIRECTORY = "members"
fakeOutMapper = "nuuh9x8820zz9s9332098" 
' needed because MapPath seems to actually fetch the mapped directory!
protectedAbsPath = server.MapPath(PROTECTED_SUBDIRECTORY & fakeOutMapper)
protectedAbsPath = Left(protectedAbsPath,
InStrRev(protectedAbsPath,fakeOutMapper) - 1) ' remove fakeout

Back to the top of the FAQ

Prev   Next