Display a pdf in Byte [] with FileContentResult in a modal window

0

Hello, I have the following code, with which I can show PDF files stored in a database:

public ActionResult VisorArchivo(int id)
    {
        COTIZACION_ARCHIVO cot = db.COTIZACION_ARCHIVO.Find(id);
        Byte[] pdf = cot.CONTENIDO_ARCHIVO;
        return new FileContentResult(pdf, "application/pdf");
    }

In my view I have an ActionLink that directly executes the ActionResult, obviously passing the id of the PDF to show.

This code works well, but what it does is redirect me to the pdf viewer, for which I must return to return to the PDF's menu, what I need is to show that viewer in a modal window and that is exactly what I can not do In advance I appreciate any help possible.

    
asked by Ezio Auditore 10.09.2018 в 04:56
source

0 answers