I have a webpart that needs to create dynamically a .zip file in the server and download that file to the client machine, once the user clicks on an Export button.
The .zip generation is ready, I just need to know how to download the file to the client machine, in a way the user chooses the destination directory. I saw 2 main different solutions over the internet: one uses the Response.TransmitFile/WriteFile, and the other one involves creating a download page. Is there a easiest way to do this directly from the code behind?

0 commentaires:
Enregistrer un commentaire