title: Download the file mvc2 using actionlink
body: <p>I want to upload and download the resume using asp.net mvc2. I already created the codings. It is uploaded successfully. When I try to download the file I have an issue..
  It is showing a empty page..</p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code> [HandleErrorWithAjaxFilter]
      public ActionResult UploadResume(HttpPostedFileBase FileData)
      {
          Stream fromStream = FileData.InputStream;
          Stream toStream = new FileStream(Server.MapPath("~/Content/Resumes/") + FileData.FileName, FileMode.Create);
  
          LoggedInCandidate.ResumeFileName = FileData.FileName;
          //_repository.Save();
          _userRepository.Save();
  
          return Json(new JsonActionResult
          {
              Success = true,
              Message = "Resume has been uploaded."
          });
          //return Json("Resume has been uploaded.");
      }
  </code></pre>
  
  <p><strong>View:</strong></p>
  
  <pre><code>    &lt;input id="Resume" type="file" name="Resume" /&gt;     
  </code></pre>
  
  <p><strong>Download:</strong></p>
  
  <pre><code>&lt;p&gt;
                  &lt;% var link = Url.Content("~/Content/Resumes/") + Model.ResumeFileName; %&gt;
                  &lt;a href="&lt;%: link %&gt;"&gt;Download Resume&lt;/a&gt; 
              &lt;/p&gt;
  </code></pre>
  
  <p>when I click the link download resume, it shows the name of the file at url but it is not downloading.</p>