title: Link to Sitecore Media Item
body: <p>In one of my templates, I created a field named UploadedSitecoreFile and set the type to File.
  I did this so that when a user creates a new item, they can browse the Media Library and select the PDF that they want to link to.</p>
  
  <p>In my code-behind, I have the following:</p>
  
  <pre><code>Dim subItem = TryCast(e.Item.DataItem, Item)
  ltResourceInfoTag.Text = ltResourceInfoTag.Text &amp; "&lt;a href='" &amp; subItem("UploadedSitecoreFile").ToString &amp; "'&gt;" &amp; subItem("Name").ToString &amp; "&lt;/a&gt;"
  </code></pre>
  
  <p>Can someone tell me the correct way to link to a media item?</p>
  
  <p>Thanks,
  C.R. Junk</p>