Set file to be downloaded, and define destination name

HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=" + "tiago.pdf");

Comments

Popular posts from this blog

Breaking down document locking in SharePoint

Working around X-Frame-Options for iframes

Document ID not being generated