this.Page.Response.ContentType = "application/msword"; // use "application/x-unknown" to make sure the document is never opened in the browser this.Page.Response.AddHeader("content-disposition", "attachment; filename=document.doc"); this.Page.Response.Redirect("/_layouts/document.doc");