How to convert an app relative path to an absolute without ResolveUrl(chrishynes.net)
submitted by
crpietschmann(11.3k) 4 years, 7 months ago
Today, I discovered a way to do this without a Control reference. The System.Web.VirtualPathUtility class has some very useful methods for manipulating paths, including one that converts from an app relative path to an absolute path. Instead of Control.ResolveUrl, just call VirtualPathUtility.ToAbsolute:
|category: ASP.NET
|Views: 152
tags:
VirtualPathUtility path ASP.NET another
Everyones tags:
Your Tags: