M
marss
Server.MapPath("~/page.aspx") returns the physical file path based on
the specified virtual path. Is there any reverse method to get the
virtual path based on the physical path (both pathes belong to the
same web application)?
Usually I do in this way:
virtualFilePath =
physicalFilePath.Replace(physicalRootDirectoryPath,"~/")
Perhaps, is there standard inbuilt method?
Mykola
http://marss.co.ua
the specified virtual path. Is there any reverse method to get the
virtual path based on the physical path (both pathes belong to the
same web application)?
Usually I do in this way:
virtualFilePath =
physicalFilePath.Replace(physicalRootDirectoryPath,"~/")
Perhaps, is there standard inbuilt method?
Mykola
http://marss.co.ua