Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Pushing Multiple Files In One Response

Pushing Multiple Files In One Response

Scheduled Pinned Locked Moved ASP.NET
algorithmshelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RB Emphasys
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • R RB Emphasys

      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

      P Offline
      P Offline
      Prateek G
      wrote on last edited by
      #2

      u will have to zip the files and then display..

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups