What is the best way to use ResolveUrl() in a Shared/static function in Asp.Net? My current solution for VB.Net is:
Dim x As New System.Web.UI.Control
x.ResolveUrl("~/someUrl")
Or C#:
System.Web.UI.Control x = new System.Web.UI.Control();
x.ResolveUrl("~/someUrl");
But I realize that isn't the best way of calling it.