context.Response.Clear(); context.Response.ClearHeaders(); context.Response.ClearContent(); context.Response.ContentType = GetMimeTypeByFileName(System.IO.Path.GetExtension(fileExtension); context.Response.AddHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\""); context.Response.TransmitFile(completePath);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)