Perhaps this might work:
String RelativePath = AbsolutePath.Replace(Request.ServerVariables["APPL_PHYSICAL_PATH"], String.Empty);
I’m using c# but could be adapted to vb.
More Related Contents:
- Path.Combine for URLs?
- save data from 2 forms and show it in a 3rd form c# [closed]
- Finding the variable name passed to a function
- How to increase the max upload file size in ASP.NET?
- Get the correct week number of a given date
- Read SQL Table into C# DataTable
- How should I inject a DbContext instance into an IHostedService?
- Is String.Contains() faster than String.IndexOf()?
- Understanding WCF Windows Authentication
- WebClient.DownloadString() returns string with peculiar characters
- ASP.NET use SqlConnection connect MySQL
- Debug vs. release in .NET
- EPPlus number format
- @(at) sign in file path/string [duplicate]
- How DataReader works?
- Call and consume Web API in winform using C#.net
- How to find the reason for a failed Build without any error or warning
- How to consume a Scoped service from a Singleton?
- Convert file path to a file URI?
- Access to the path is denied when saving image
- ASP.net Getting the error “Access to the path is denied.” while trying to upload files to my Windows Server 2008 R2 Web server
- Font awesome inside asp button
- Regex for Money
- Printing from ASP.NET to a network printer
- Tag helper not being processed in ASP.NET Core 2
- Built-in helper to parse User.Identity.Name into Domain\Username
- Are static variables thread-safe? C#
- what is [] brackets in .net? [duplicate]
- Can I reuse HttpWebRequest without disconnecting from the server?
- Get a list of weeks for a year – with dates