<%@ Import Namespace="ICSharpCode.SharpZipLib.Zip"%>
<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Dim MyZip As ZipFile
MyZip = ZipFile.Create(Server.MapPath("MyZip/thaicreate.zip"))
With MyZip
.BeginUpdate()
.Add(Server.MapPath("myfiles1.txt"), "myfiles1.txt")
.CommitUpdate()
End With
MyZip.Close()
Me.lblText.Text = "Zip Created <a href=MyZip/thaicreate.zip>Click here</a> to Download"
End Sub
</script>
<html>
<head>
<title>ThaiCreate.Com ASP.NET - Zip Files</title>
</head>
<body>
<form runat="server">
<asp:Label id="lblText" runat="server"></asp:Label><br />
</form>
</body>
</html>