Sunday, 15 September 2013

ASP physical and virtual path

ASP physical and virtual path

This is the first time I make an asp site. This line of code is working
fine on my pc but obviously to make it working on the production server I
need to change the reference.
DirectoryInfo dir = new DirectoryInfo(@"C:\Users\Pink\Documents\Visual
Studio
2012\Projects\ManagDoc_Framework\Test1_managDoc\Test1_managDoc\Allegati\"
+ recordIDcreateDir);
I have tried many sort of path combination but I am not getting it right.
I would like to find a solution that makes the code working on both pc,
during development, and hosting server without having to change the code.
How should i write the path? Some help will be appreciated.

No comments:

Post a Comment