A
Anders
Hi,
This is the code I am using:
string filepath = "Themes/img/logo.rar";
string filename = System.IO.Path.GetFileName(filepath);
Response.Clear();
Response.ContentType = "application/zip";
Response.AddHeader("Content-Disposition", "attachment; filename=" +
filename);
Response.Flush();
Response.WriteFile(filepath);
Instead of the choice of saving the file its content is output in the
browser.
Thanks in advance,
Anders
This is the code I am using:
string filepath = "Themes/img/logo.rar";
string filename = System.IO.Path.GetFileName(filepath);
Response.Clear();
Response.ContentType = "application/zip";
Response.AddHeader("Content-Disposition", "attachment; filename=" +
filename);
Response.Flush();
Response.WriteFile(filepath);
Instead of the choice of saving the file its content is output in the
browser.
Thanks in advance,
Anders