I would like to view a PDF file directly in my browser. I know this question is already asked but I haven\'t found a solution that works for me.
PDF
Here is
Change your code to this :
Response.AppendHeader("Content-Disposition","inline;filename=xxxx.pdf"); return File(filePath, "application/pdf");