I have filecontentresult from controller action method as shown ,contents is byte[] type
FileContentResult file= new FileContentResult(contents, "/PDF");
Response.AppendHeader("Content-Disposition", "inline; filename=" + filename);
return file;
Now, if the file type is known as pdf and specified, why is not directly opening in adobe reader and prompting window to openwith /saveas. If my filecontentresult passes pdf I want it to open without window propmt. how can it be done? Also the above code only prompting window in mozilla, In IE no prompt or opening.