string newpath = "~/Debug1/ConsoleApplication1.exe"; string Filename = Path.GetFileName(filepath); Response.ContentType = "application/octet-stream"; Response.AddHeader("Content-Disposition", "attachment;filename=" + Filename + ""); Response.TransmitFile(Server.MapPath(filepath.ToString())); Response.End();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)