Monday, September 10, 2007
Asp.NET 2 has a new class System.Web.VirtualPathUtility which allows you to resolve relative url's without the need of working within a UserControl or Page.
This is especially useful if you need to resolve relative url's from within a data layer or object interface.


string absUrl = VirtualPathUtility.ToAbsolute(relUrl);

posted on Monday, September 10, 2007 6:48:32 PM (South Africa Standard Time, UTC+02:00)  #    Trackback
Related posts:
ASP.NET HTTP 301 Redirect
Url Rewriting and Google Indexing not working
ASP.NET Session State, Cookies and Subdomains
HttpContext within a Business Layer