ASP.NET c# code: Zipping files and saving files to client local computer with save file dialog box
Posted on 2013-11-30
The following code saves the zipped file in the server.
I have Ionic.Zip.dll in the bin folder
protected void btnzip_Click(object sender, EventArgs e)
string path = Server.MapPath("~/App_Info_Folders/" + lblattfld.Text + "/");
string filenames = Directory.GetFiles(path);
using (ZipFile zip = new ZipFile())
lblmessage.Text = "ZIP File Created Successfully";
I want the code to be modified in such a way that the zipped file is directly saved on the client local computer through save file dialog box.