protected void LinkButtonDownload_Click(object sender, EventArgs e) { Response.ContentType = "Application/msword"; Response.AppendHeader("Content-Disposition", "attachment; filename=Test.docx"); Response.TransmitFile(Server.MapPath("~/Files/Test.docx")); Response.End(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)