title: Download multiple zip files asp.net
body: <p><br>
  I want to download multiple zipped files at once - and not putting them into 1 zipfile. I want them separately.</p>
  
  <p><br>
  I have this code snippet below where the input is from a loop of reportnames that the user have chosen.</p>
  
  <pre><code>public static void ExecuteDownloadInBrowser(string reportPrefix)
      {
          string zippedFilePath = baseZippedFolderPath + reportPrefix + ".zip";
          FileInfo file = new FileInfo(zippedFilePath);
          if (file.Exists)
          {
              try
              {
                  HttpContext.Current.Response.Clear();
                  HttpContext.Current.Response.ClearHeaders();
                  HttpContext.Current.Response.ClearContent();
                  HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
                  HttpContext.Current.Response.AddHeader("Content-Length", file.Length.ToString());
                  HttpContext.Current.Response.ContentType = "text/plain";
                  HttpContext.Current.Response.Flush();
                  HttpContext.Current.Response.TransmitFile(file.FullName);
                  HttpContext.Current.Response.End();
  
                  WriteToLog("Downloadling file: " + file.Name + " in browser succeded");
              }
              catch(Exception ex)
              {
                  WriteToLog("Error downloading file in browser. Message: " + ex.Message);
              }
          }
      }
  </code></pre>
  
  <p>This works fine, but just with 1 file. <br>
  This makes sense due to the 1 to 1 relationship between One request = One response. </p>
  
  <p>But are there any way I can do this smother than zipping them all into 1 file?</p>
  
  <p>Thankful for all help.</p>