I have a generic handler Document.ashx
that creates Word documents on the fly by reading information from the querystring like this Document.ashx?clientid=123&documentid=10
and it works perfectly.
I need to create an interface with a list of checkboxes and a Download All
button. The best idea I've had so far is to use something like this to make the calls to the handler.
$("body").append("<iframe src='Document.ashx?clientid=123&documentid=10'></iframe>
<iframe src='Document.ashx?clientid=123&documentid=11'></iframe>")
Chrome and Firefox handle this as expected, though IE9 prompts the user to ask if they want to save the first file but ignores the following files.
How do I initiate downloading of multiple files from the client?
This is for an intranet site so the files are always generated in ~1 second, users would be selecting ~3-5 documents at a time. The vast majority of users are using IE9. I can tell everyone they have to use Firefox or Chrome but I'd rather find a solution that works in all modern browsers.
I don't want to create a zip file server side because then they always have to unzip it first (which will be too difficult for some to understand) and it slows them down.