title: Icons for each file type
body: <p>In my MVC application, user can upload various type of files (pdf, jpg, txt etc) and I want to show icon specific to each type, currently I am using one icon (pdf) for the purpose, I want, that based on the file type, associated icon should be displayed. Please guide me what kind of approach I can use for this purpose</p>
  
  <pre><code>&lt;td&gt;
  @if (item.CalibratedBy != null){
  &lt;a href = @Url.Action("ViewCertificate", new { fileName = item.CalibrationCert }) &gt; 
  &lt;img src = "@Url.Content("~/Content/Icons/pdf.jpg")"  alt = "attachment" /&gt; &lt;/a&gt;
  }
  &lt;/td&gt;
  </code></pre>