I have an MVC application that shows a list of files for download. The user selects the files with a checkbox and these are generated as PDF\"s on the server side using the
You can zip all selected files and send it across. There is library available for same on codeplex called DotNetZip This is how you can zip it.
var outputStream = new MemoryStream();
using (var zip = new ZipFile())
{
zip.AddFile("path to file one");
zip.AddFile("path to file two");
zip.AddFile("path to file three");
zip.AddFile("path to file four");
zip.Save(outputStream);
}
outputStream.Position = 0;
return File(outputStream, "application/zip","zip file name.zip");