string result = Path.GetFileName(path); //Response.ContentType = "Document/Docx"; Response.ContentType = "application/vnd.ms-word"; Response.AppendHeader("Content-Disposition", "inline; filename=" + result); Response.TransmitFile(Server.MapPath(path)); Response.End();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)