%@ Page Language="C#" Debug="true" %> <%@ Import Namespace="System.Text" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="Ionic.Zip" %> <%@ Import Namespace="System.Collections.Generic" %>
This page uses the .NET Zip library (see http://DotNetZip.codeplex.com) to dynamically create a zip archive, and then download it to the browser through Response.OutputStream, via a MemoryStream. This page is implemented in C#.