[
  {
    "Id": "217588",
    "ThreadId": "63998",
    "Html": "<p>First off, thank you for the great library, simplified my life greatly.</p>\r\n<p>I am running into an issue when using a lightly modififed &quot;Create a downloadable zip&quot; sample.&nbsp; My issue is that I'm not getting a download prompt at all.&nbsp; What happens is that the stream seems to create the zip just fine, with the files/etc, but then it automatically dumps it into my browser's temporary cache folder and opens it from there in a regular explorer window, showing the contents of the zip.</p>\r\n<p>Not sure why its not asking me where I want to save it with a regular download prompt.</p>\r\n<p><span style=\"color:#0000ff\"><strong>EDIT: Ok, just tried it in Firefox, and it works properly there.&nbsp; The issue seems to be on the IE8 side.... still, I need that side to work properly as well...</strong></span></p>\r\n<p>I am using the 'reduced' dll (Ionic.Zip.Reduced.dll) since i only want the very basic of functionality here.</p>\r\n<p>Here's what I have:<br>==============================</p>\r\n<p>protected void DoZip(CheckBoxList cbl, String s)<br>&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Response.Clear();<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Response.BufferOutput = false;&nbsp; // for large files<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;String ReadmeText = &quot;.....&quot;;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;string filename = &quot;AEA13ATResource-&quot; + s + &quot;.zip&quot;;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Response.ContentType = &quot;application/zip&quot;;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Response.AddHeader(&quot;content-disposition&quot;, &quot;filename=&quot; + filename);<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;using (ZipFile zip = new ZipFile())<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;zip.AddEntry(&quot;Readme.txt&quot;, &quot;&quot;, ReadmeText);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;foreach (ListItem li in cbl.Items)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (li.Selected)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;String file = Server.MapPath(&quot;/net/ATResources/files/&quot; + s + &quot;/&quot; + li.Value);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;zip.AddFile(file, &quot;files&quot;);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;zip.Save(Response.OutputStream);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Response.End();<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;HttpContext.Current.ApplicationInstance.CompleteRequest();<br>&nbsp;&nbsp; &nbsp;}</p>\r\n<p>=====================</p>\r\n<p>has to be something simple right?&nbsp; any help would be greatly appreciated, thank you.</p>\r\n<p>andy</p>",
    "PostedDate": "2009-07-30T06:52:01.4-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "217636",
    "ThreadId": "63998",
    "Html": "<p>andy, try replacing the Response.AddHeader call above with this:</p>\r\n<pre>    Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment; filename=&quot; + filename);\r\n</pre>",
    "PostedDate": "2009-07-30T09:00:51.35-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "217640",
    "ThreadId": "63998",
    "Html": "<p>perfection! THANK YOU.</p>\r\n<p>i searched around through the posts, but didn't find anything, although i have a feeling this has been asked already, in which case, apologies for wasting your time answering it again.</p>",
    "PostedDate": "2009-07-30T09:04:45.09-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "263910",
    "ThreadId": "63998",
    "Html": "<p>also, I think you should use Response.Close() instead of HttpContext.Current.ApplicationInstance.CompleteRequest();</p>",
    "PostedDate": "2009-12-05T05:03:20.72-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]