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 Int
This is configurable in your browser. You can change the settings to download / open in browser or open in relevant application in tools->options->applications section for all file types. Thi has nothing to do with your code.