Aug 16, 2011 at 9:27 AM
Edited Aug 16, 2011 at 9:29 AM
I'm making a Sharepoint 2007 Webpart which is showing files from a documentlibrary and you you can download them in a ZIP file.
There is a button to download the selected files, but the button works only once.
There are some links (a href) in the webpart and they are still working, though.
I clear the header in the code, so it could be that my postback function is gone.
What is the right way to solve this?
Here is a snip of my code for downloading the ZIP file:
// clear the Response contents and headers
// set new headers and mime type
Page.Response.AddHeader("content-disposition", "attachment; filename=" + zipName + ".zip");
Page.Response.ContentType = "application/zip";
// output the zip archive to the response stream
// end the response