I have this code
private void writeReport(IReport report, string reportName)
{
string reportString = report.makeReport();
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] encodedReport = encoding.GetBytes(reportString);
Response.ContentType = "text/plain";
Response.AddHeader("Content-Disposition", "attachment;filename="+ reportName +".txt");
Response.OutputStream.Write(encodedReport, 0, encodedReport.Length);
Response.End();
}
but I have 3 documents that I need to send to the client. I'd rather not have to make the user click 3 buttons to get them the 3 txt files. Is there a way to send all 3 on one reponse?