[
  {
    "Id": "658738",
    "ThreadId": "269228",
    "Html": "<p>Hi,</p>\n<p>I'm making a Sharepoint 2007 Webpart which is showing files from a documentlibrary and you you can download them in a ZIP file.<br />There is a button to download the selected files, but the button works only once. <br />There are some links (a href)&nbsp;in the webpart and they are still working, though. <br />I clear the header in the code, so it could be that my postback function is gone.<br />What is the right way to solve this?</p>\n<p>Here is a snip of my code for downloading the ZIP file:</p>\n<p>&nbsp;// clear the Response contents and headers<br />&nbsp;Page.Response.Clear();<br />&nbsp;Page.Response.ClearContent();<br />&nbsp;Page.Response.ClearHeaders();</p>\n<p>&nbsp;// set new headers and mime type<br />&nbsp;Page.Response.AddHeader(\"content-disposition\", \"attachment; filename=\" + zipName + \".zip\");<br />&nbsp;Page.Response.ContentType = \"application/zip\";</p>\n<p>&nbsp;// output the zip archive to the response stream<br />&nbsp;zip.Save(Page.Response.OutputStream);</p>\n<p>&nbsp;// end the response<br />Page.Response.End()&nbsp;</p>\n<p>&nbsp;</p>",
    "PostedDate": "2011-08-16T02:27:24.247-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "662629",
    "ThreadId": "269228",
    "Html": "<p>Nobody??</p>",
    "PostedDate": "2011-08-24T05:10:47.37-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "662747",
    "ThreadId": "269228",
    "Html": "<p>qwerty I looked at your code and your question.&nbsp; Nothing in your dotnetzip code looks askew.</p>\n<p>I don't know why \"it works only once\".&nbsp; I suspect there is something else in your webpage logic that is leading to that situation.&nbsp; The dotnetzip code looks ok.</p>\n<p>I also deleted my previous message, the one where I scoffed at your impatience&nbsp;- how embarassing!&nbsp; I thought you had asked twice in one day, but in fact you had asked the question a week ago and got no answer, and only posted a followup now.&nbsp;&nbsp;I apologize.&nbsp; I was mistaken.</p>\n<p>good luck.&nbsp;&nbsp;</p>",
    "PostedDate": "2011-08-24T09:18:56.03-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "664299",
    "ThreadId": "269228",
    "Html": "<p>Hi Cheeso, No worries!</p>\n<p>I'm thinking of redirecting to a different page and save the zip locally. Than a link will get the zip file so I don't have to push it to the end user.<br /> I'm thinking my postback function is gone in the header of my page after using the ClearHeaders method.</p>\n<p>Thanks all.</p>",
    "PostedDate": "2011-08-27T11:59:18.28-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]