I get how server.mappath works.
server.mappath(.) gets my current folder
server.mappath(\) gets me to the root of the web etc.
Here's my problem, I can't be assured that the application itself is at the root of the web.
All of the web pages are in the inetpub directory.
All of the supporting pages are in a virtual directory called documents.
If I'm at the root then server.mappath(documents) returns the physical path of the virtual directory, not a problem.
If I am in a sub folder though, how do I get to the parent folder, then into the virtual folder?
For example, my asp page is
<%website%>\1_folder_down\2_folders_down\test.asp
my virtual directory though would appear as
<%website%>\1_folder_down\documents
Parent Paths are enabled. I'm looking for a way to move up one folder, then into the virtual directory rather than move up to the root then into the virtual directory
To build may have to be the slow laborious task of years. To destroy can simply be the thoughtless act of a single day.
server.mappath(.) gets my current folder
server.mappath(\) gets me to the root of the web etc.
Here's my problem, I can't be assured that the application itself is at the root of the web.
All of the web pages are in the inetpub directory.
All of the supporting pages are in a virtual directory called documents.
If I'm at the root then server.mappath(documents) returns the physical path of the virtual directory, not a problem.
If I am in a sub folder though, how do I get to the parent folder, then into the virtual folder?
For example, my asp page is
<%website%>\1_folder_down\2_folders_down\test.asp
my virtual directory though would appear as
<%website%>\1_folder_down\documents
Parent Paths are enabled. I'm looking for a way to move up one folder, then into the virtual directory rather than move up to the root then into the virtual directory
To build may have to be the slow laborious task of years. To destroy can simply be the thoughtless act of a single day.