MS has disabled Parent directory browsing by default in IIS which means users cannot use "../" to indicate parent directory or going upper directory. Any solution on this problem beside enabling Parent Directory Browsing?
There is no better way to deal with it. Here are the work-around.
1) For ASP code, you can define a global variable (Const strDefaultPath = "/MyDefaultFolder"). So you can use strDefaultPath & "/SubFolder1" instead of "../SubFolder1". When you move the site to another folder or server, you only need change this variable. You can also put this variable in the configuration file (web.config) if you like.
2) For #Include directive, there is no other way (#inlcude directive cannot use variable). You always need to use absolute path ("/MyDefaultFolder/Include/...").
I have access to the server. As this is a shared hosting server, enabling the Parent Path would invite security problem on the server. This is the main reason MS disabled this option by default on IIS6.
The function could work once i enable the Parent Path. The only thing that i am concern would be the security. From what i know, this would expose the server to breakin. Any programmer could verify this?