Wednesday 20 February 2013

Url.Content ASP.NET equivalent

I keep needing this so thought I would put is somewhere:

in MVC you are given a very nice Url.Content element which allows you to build a site to the url with a tilde ~.

There is an equivalent in ASP.NET: Page ResolveUrl()