title: Creating File Download Links MVC3 Razor View with Model
body: <p>I am attempting to create links in my view so the end user can download the files in my model. In internet explorer I can right click and download from the link but I cannot left click (it does not open the file). Firefox gives me a message when I click the file that it does'nt know how to open this address, because the protocol (d) isn't associated with any program. </p>
  
  <p>Here is how I am creating the link.</p>
  
  <pre><code>    @{
              foreach (var EpubFile in item.files)
              {
                  if(File.Exists(System.Configuration.ConfigurationManager.AppSettings["UploadFileDirectory"] + EpubFile.FileReference))
                  {
                      string link = System.Configuration.ConfigurationManager.AppSettings["UploadFileDirectory"] + EpubFile.FileReference;
                      &lt;a href="@link"&gt;@EpubFile.OriginalFileName&lt;/a&gt;                              
                  }
              }
          }   
  </code></pre>