How can I get the relative virtual path from the physical path in asp.net? The reverse method is like below:
Server.MapPath(\"Virtual Path Here\"); >
Server.MapPath(\"Virtual Path Here\");
Maybe this question is what you're looking for. There they suggest:
String RelativePath = AbsolutePath.Replace(Request.ServerVariables["APPL_PHYSICAL_PATH"], String.Empty);