[RESOLVED] how to display an PdF dynamiclly in iframe

Hello all,

i have an ifram in a web page and i want dynamiclly to pop a pdf.

i am generating a pdf into a byte[] .

is it possible to bind the ifram with the byte[]?

Please help me ..


Create a new page and do a response.BinaryWrite your byte array in Page Load

protected void Page_Load(object sender, EventArgs e)
        Response.Buffer = true;
        Response.ContentType = "application/pdf";
    catch (Exception ex) 
        throw ex; 

And set Iframe Src to the new page. That's it

thoughts on "[RESOLVED] how to display an PdF dynamiclly in iframe"

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>