Download Files using ASP.NET MVC

  1. @Html.ActionLink("Download""Download"new { ImageName = ImageName })  
  2.    
  3. public FileResult Download(string ImageName)  
  4. {  
  5.    return File("ImagePath" + ImageName, System.Net.Mime.MediaTypeNames.Application.Octet);  
  6. }