Home > Net >  How can I combine View Result and File Results in MVC.NET
How can I combine View Result and File Results in MVC.NET

Time:02-10

I have an MVC.NET C# application. One of the actions returns the File Result

public ActionResult ViewSomePDF()
{
    byte[] fileStream = GetFileStream()
    return File(fileStream, @"application/pdf");
}

The file is being displayed fine; however, I would like to add some HTML controls above the file when it streams. Is that possible in MVC? Can I somehow combine the File Results and the View Result so that the View Result would be on top and the File Result would be on the bottom

Is that possible?

Thank you very much in advance

CodePudding user response:

  •  Tags:  
  • Related