I am trying to open pdf in a new tab using Asp.net mvc controller. it is opening in new tab correctly but the document name is not showing here is my code
public ActionResult ViewDocument() { byte[] docFileArr=...... var cntdn = new System.Net.Mime.ContentDisposition { FileName = DocumentName, Inline = true, }; Response.AppendHeader("Content-Disposition", cntdn .ToString()); return File(docFileArr, "application/pdf"); } the document opening in new window correctly but it showing the controller name only not the document name. please see the attachment.
