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\");
public static string MapPathReverse(string fullServerPath) { return @"~\" + fullServerPath.Replace(HttpContext.Current.Request.PhysicalApplicationPath,String.Empty); }