Pushing Multiple Files In One Response
-
Hello Everyone, I did a little searching around and couldn't find a good answer to this problem. I have multiple files, of multiple file types, that I would like to push to the client side with one button click. I'm doing one at a time just fine in the following fashion: PDFGenerator oPDFGenerator = new PDFGenerator(); byte[] oByte = oPDFGenerator.Genereate52670a1PDF(Page.Request.PhysicalApplicationPath); if (oByte != null) { this.Page.Response.ContentType = "application/pdf"; this.Page.Response.AddHeader("Content-Disposition", "attachment; filename=52670a1.pdf"); this.Page.Response.BinaryWrite(oByte); this.Page.Response.Flush(); this.Page.Response.End(); } Any idea on how I could pull this off with multiple files? Thanks for any suggestions in advance, Ryan
-
Hello Everyone, I did a little searching around and couldn't find a good answer to this problem. I have multiple files, of multiple file types, that I would like to push to the client side with one button click. I'm doing one at a time just fine in the following fashion: PDFGenerator oPDFGenerator = new PDFGenerator(); byte[] oByte = oPDFGenerator.Genereate52670a1PDF(Page.Request.PhysicalApplicationPath); if (oByte != null) { this.Page.Response.ContentType = "application/pdf"; this.Page.Response.AddHeader("Content-Disposition", "attachment; filename=52670a1.pdf"); this.Page.Response.BinaryWrite(oByte); this.Page.Response.Flush(); this.Page.Response.End(); } Any idea on how I could pull this off with multiple files? Thanks for any suggestions in advance, Ryan