I have a file that is being included, in that file there's
Server.MapPath('../_data") which doesn't work since that file included is not in the same Server.MapPath as the file executed. any Idea of how I can get the included file's path?To clarify the situation, I added a picture
As you can see, I'm including a file from one site to the other (no other choice there), so that the server.mappath is intended to be different, though the result is that on the included file 开发者_Python百科I get the mappath of the executed file.You should better use relative paths.
Relative paths start with /
which means start from the root of the site..
精彩评论