asp.net - Multiple file download -


ASP.NET / VB.NET web application.

Currently I am creating a Word document, this is a great way to handle this with a "open / save" dialog etc. for the streaming browser ...

Actually in webform The multi-select listbox is that they select one or more documents and click the "Generate / Download" button. Works great for a file but many files do not work here. Here is a part of my code.

  Present. response. ClearType (HTTP) Running response. Edhader ("Content Disposition", Convert.tostring ("etacet; filename =") and DocFileNameDestination) HttpContext.Current.Response.AddHeader ("Content Length", Last DocumentStream.ToArray (.) Length.Tostring ()) HttpContext.Current .Response.ContentType = "Application / MS-Word" HTTP Presentation Present. response. BinaryWrite (final documentstream.Tuare ()) HPPTXT Current. response. Flush () hpptext Current. EpilinkInstance Compllerequest ()  

Question: How can I allow the user Download all selected files at once I really like a simple solution Even if I have made a zip ... only that is easy.)

Thank you in advance!

You can download one of them in one loop at a time. If you want to download them at once, you can download each file in a separate thread by starting a background worker for each file in the loop.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -