title: Resolve virtual path in MVC
body: <p><strong>Hi,</strong></p>
  
  <p>I got a adress like this : ~/Content/Files/AdImages/20/20_thumb.jpeg, I need this to be resolved. This was done in ASP.net with Control.ResolveUrl().</p>
  
  <p>According to this article <a href="http://stephenwalther.com/blog/archive/2009/02/18/asp.net-mvc-tip-47-ndash-using-resolveurl-in-an-html.aspx" rel="nofollow noreferrer">http://stephenwalther.com/blog/archive/2009/02/18/asp.net-mvc-tip-47-ndash-using-resolveurl-in-an-html.aspx</a>, I should use somthing like this : </p>
  
  <p>urlHelper.Content("~/Content/Files/AdImages/20/20_thumb.jpeg")</p>
  
  <p>This does however returns the following url : /Content/Files/AdImages/20/20_thumb.jpeg even when Im not in the root of the solution(Content is placed in the root)?</p>
  
  <p>How can I resolve this?</p>
  
  <p>note that this is from within a html helper extension.</p>
  
  <p><strong>//SnowJim</strong></p>