Meta refresh tag stops working after download

Dec 24, 2012 at 3:54 PM
Edited Dec 24, 2012 at 4: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.

 

 

protected

 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 =

"application/DEW_Archive-zip-compressed";

Response.AppendHeader(

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

Response.TransmitFile(sessionDir +

"DEW_Archive.zip");

Response.End();

}