title: Absolute file path to relative URL
body: <p>I've seen lots of tutorials on resolving a relative url to an absolute path, but i want to do the opposite: resolve an system absolute filepath into a relative url.</p>
  
  <p>Is there a nice hack-free way to turn a filepath like <code>c:\my_website_root\images\picture_a.jpg</code>
  into <code>images/picture_a.jpg</code></p>
  
  <p>I've had a look at <code>Uri.MakeRelative()</code> but i dont think it will be of use in this case.</p>
  
  <p>Edit: I've implemented it like this, still seems hacky (esp line#2)</p>
  
  <pre><code>var urlPath = new Uri(@"c:\mywebfolder\images\picture1.jpg");
  var urlRoot = new Uri(Server.MapPath("~")+"/");
  string relative = urlRoot.MakeRelativeUri(urlPath).ToString();
  </code></pre>