I have something like this in my View:
var url = \'@Url.Action(\"DownloadZip\", \"Program\")\' + \'?programNums=\' + selectedRow;
$.ajax({
I think you are going to run into a lot of problems with this implementation. You actually cannot upload or download files via AJAX. See the link below.
How to download file from server using jQuery AJAX and Spring MVC 3
You should use one of the two implementations shared in the question pasted above. If you use the IFRAME method, you may be able to use jQuery to check when the document is done and whether or not it succeeded.
EDIT: You can just throw a server exception (500). How you handle the 500 from the IFRAME is up to you.