title: Getting full url of any file in ASP.Net MVC
body: <p>I want to generate complete Url (with domain name etc) of any file in MVC. Example: A <code>.jpg</code> file or an <code>exe</code> file.</p>
  
  <p><strong>Example: If I give "~/images/abc.jpg" it should return "<a href="http://www.mywebsite.com/images/abc.jpg" rel="nofollow noreferrer">http://www.mywebsite.com/images/abc.jpg</a>"</strong></p>
  
  <p>I am aware of the <code>Url.Action</code> overload that takes the protocol as a parameter. But <code>Url.Action</code> can be used only for Actions.</p>
  
  <p>I want something like <code>Url.Content</code> function that takes protocol as a parameter.</p>
  
  <p>Do you know if any method to get complete url of any file?</p>
  
  <p>I have tried: <code>VirtualPathUtility.ToAbsolute</code>, <code>ResolveClientUrl</code>, <code>ResolveUrl</code> but all of these don't seem to work.</p>