I have .zip
file in file system. I want to download that file. So far I have done
HttpContext.Current.Response.ContentType = "application/zip";
HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment; filename=" + FileName);
HttpContext.Current.Response.TransmitFile(zipName);
HttpContext.Current.Response.End();
But it directly opens up the file rather than saving it. How can download it instead if saving?
I have also seen DownloadFile(String, String)
but what will be first argument in my case?