iframe source on the fly

Discussion in 'ASP .Net' started by Tim H, May 11, 2004.

  1. Tim H

    Tim H Guest

    Hey there. In my app, I was rendering my report in PDF, then creating the
    html for my iframe object and then doing a response.write and writing that
    text. However, I need to place the iframe object before I render the
    report. How can I set the iframe's src property in code behind?
    Thanks again

    Tim Heuer
     
    Tim H, May 11, 2004
    #1
    1. Advertising

  2. <iframe id="theFrame" runat="server"></iframe>

    in code behind...

    theFrame.Attributes.Add("src", "path/to/your/file.pdf");

    -Jason

    Tim H wrote:

    > Hey there. In my app, I was rendering my report in PDF, then creating the
    > html for my iframe object and then doing a response.write and writing that
    > text. However, I need to place the iframe object before I render the
    > report. How can I set the iframe's src property in code behind?
    > Thanks again
    >
    > Tim Heuer
    >
    >
    >
     
    Jason DeFontes, May 12, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Daedalous
    Replies:
    3
    Views:
    702
    Daedalous
    Jan 16, 2004
  2. Brian

    Fly outmenu on the fly

    Brian, Apr 8, 2005, in forum: Javascript
    Replies:
    0
    Views:
    106
    Brian
    Apr 8, 2005
  3. Replies:
    2
    Views:
    595
  4. Asterbing
    Replies:
    7
    Views:
    130
    marss
    Mar 13, 2006
  5. sahista

    editable iframe on the fly

    sahista, Dec 13, 2007, in forum: Javascript
    Replies:
    4
    Views:
    259
    Thomas 'PointedEars' Lahn
    Dec 13, 2007
Loading...

Share This Page