See the following code:
Controller:
public ActionResult GetPDF()
{
byte[] pdf = GetPdfFromDatabase();
return new FileContentResult(reportData, "application/pdf");
}
View:
<iframe src="@Url.Action("GetPDF","Account")" width="600" height="500"></iframe>
Javascript Console:
Each time you load a page, show this warning !!!