<%@ Page Language="C#" EnableViewState="False" Debug="True" %> <%@ Import Namespace="System.Text" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="System.Linq" %> <%@ Import Namespace="Ionic.Zip" %> <%@ Import Namespace="System.Collections.Generic" %>

Zip Files from ASP.NET

This page uses the .NET Zip library (see http://DotNetZip.codeplex.com) to dynamically create a zip archive, and then send it to the browser through Response.OutputStream.


To generate a zip file, specify a fodder file in the "file" parameter of the query string. Choose from one of these:



Nothing to see here...