Meta refresh tag stops working after download

Dec 24, 2012 at 2:54 PM
Edited Dec 24, 2012 at 3:00 PM

I am using

Ionic.Zip to save and then download a single folder for a number of output files from a development website using VS 2012. Everything seems to work fine except that a meta tag that I use to stop the page from timing out <meta http-equiv='refresh' content='300'/> seems to stop working after the first download.

The download code (duly copied from an example) is shown below and I wondered if anyone could suggest what is going on. I would be most grateful for any help.




 void zipDown(object sender, EventArgs e)



var sessionDir = Convert.ToString(Session["sessionDir"]);


var downloadFileName = string.Format("DEW_Archive_ID"+ Session["seed"] + ".zip", DateTime.Now.ToString("yyyy-MM-dd-HH_mm_ss"));

Response.ContentType =



"Content-Disposition", "attachment; filename=" + downloadFileName);

Response.TransmitFile(sessionDir +