I've been studying this excellent Stack post about Server.MapPath()
, and I can't find anything in there that takes me up 2 levels from the current location.
Server.MapPath("./"); // this works - current path
Server.MapPath("../"); // this works - parent path
Server.MapPath("/"); // this works - virtual root path (2 levels HIGHER than I need)
Server.MapPath(".../"); // This fails
Is there no way to go up 2 levels? (That would be the parent of the parent folder.)
Yes, I can accomplish this by going to the virtual root and then parsing/combining, but that seems hackish. Looking for something more elegant or canonical.