iframe as server control

Discussion in 'ASP .Net' started by Rory, Jul 16, 2003.

  1. Rory

    Rory Guest

    I would like to know if it is possible to set/save an
    iframes content in codebehind. I know that you can set an
    iframe to runat server, but when i try to access
    the .innerHTML property i get nothing. (i understand that
    it is because there actually IS nothing inbetween the
    tags).

    Is it possible to do this, and if so, how?

    Thanks
    Rory, Jul 16, 2003
    #1
    1. Advertising

  2. You can access its attributes and set those

    myIFrame.Attributes("blah") = "value"

    etc......so you could set its source page dynamically


    On Tue, 15 Jul 2003 19:52:55 -0700, Rory <> wrote:

    > I would like to know if it is possible to set/save an iframes content in
    > codebehind. I know that you can set an iframe to runat server, but when i
    > try to access the .innerHTML property i get nothing. (i understand that
    > it is because there actually IS nothing inbetween the tags).
    >
    > Is it possible to do this, and if so, how?
    >
    > Thanks
    >
    >




    --
    Craig Deelsnyder
    Microsoft MVP - ASP/ASP.NET
    Craig Deelsnyder [MVP], Jul 16, 2003
    #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. Matthew Louden
    Replies:
    1
    Views:
    6,863
    Scott M.
    Oct 11, 2003
  2. Replies:
    0
    Views:
    661
  3. mi
    Replies:
    4
    Views:
    13,343
    dorayme
    May 21, 2008
  4. elca
    Replies:
    0
    Views:
    553
  5. Daedalous
    Replies:
    3
    Views:
    651
    Daedalous
    Jan 16, 2004
Loading...

Share This Page