Error!
Success!

How to convert an app relative path to an absolute without ResolveUrl

0
kicks

How to convert an app relative path to an absolute without ResolveUrl  (Unpublished)

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:


Kicked By:
Drop Kicked By: