I have something like this in my View:
var url = \'@Url.Action(\"DownloadZip\", \"Program\")\' + \'?programNums=\' + selectedRow; $.ajax({
Ajax: window.location = '/Home/download';
c#:
public FileResult download() { return File("~/" + path, "application/pdf", string.Format(fileName)); }