I am using ASP.NET MVC 3. I have a controller action that returns a PDF file like this:
Public Class ReportController
...
Function Generate(id As Integer) As ActionResult
...
Return File(output, "application/pdf", "something.pdf")
' "output" is a memory stream
End Function
The code works but Firefox doesn't display the result in a tab, the result is either downloaded or opened with Adobe Reader.
I know that Firefox can display PDF in a tab because I can just google some PDF, click the link, and the PDF will open in a tab.
How do I set up the action so the PDF will open in a tab?