hi oh my gosh buddies :
how do i get relative virtual path from physical path in asp.internet?
overturn technique is like below :

Server.MapPath("Virtual Path Here");

but what's the reverse of upper method ?

thanks ahead of time

Maybe this question is exactly what you are searching for. There they suggest:

String RelativePath = AbsolutePath.Replace(Request.ServerVariables["APPL_PHYSICAL_PATH"], String.Empty);
    public static string MapPathReverse(string fullServerPath)
        return @"~\" + fullServerPath.Replace(HttpContext.Current.Request.PhysicalApplicationPath,String.Empty);