string subfol = Session["inbpostedfol"].ToString(); string fullpath = Server.MapPath("~/InboxFiles/" + subfol); FileInfo flie = new FileInfo(fullpath); Response.Clear(); Response.ContentType = "application/zip"; Response.AddHeader("content-disposition", "attachment; filename=" + subfol + ".zip"); using (ZipFile zipfile = new ZipFile()) { zipfile.AddSelectedFiles("*.*", subfol, fullpath); zipfile.Save(Response.OutputStream); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)