IFRAME reference in code-behind?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andreas Heusler

    IFRAME reference in code-behind?

    Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
    page, so the IFRAME's src property can be set by server-side code?
    Thanks
    AH


  • ashish

    #2
    Re: IFRAME reference in code-behind?

    i dont think thats possible but you could inject the whole iframe html
    from behind...



    Andreas Heusler wrote:[color=blue]
    > Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
    > page, so the IFRAME's src property can be set by server-side code?
    > Thanks
    > AH
    >
    >[/color]

    Comment

    • JV

      #3
      Re: IFRAME reference in code-behind?

      Haven't specifically tried an IFrame, but it should be possible to access
      any HTML object/tag in your document as long as you mark that tag with
      RUNAT=SERVER


      "Andreas Heusler" <aheusler@gramm atik.biz> wrote in message
      news:OdSFNXUMFH A.1528@TK2MSFTN GP09.phx.gbl...[color=blue]
      > Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
      > page, so the IFRAME's src property can be set by server-side code?
      > Thanks
      > AH
      >
      >[/color]


      Comment

      • jwk

        #4
        RE: IFRAME reference in code-behind?

        I did something similar to this using a Literal control, the literal will
        contain all the iframe html code. You can modify the literal's output from
        the code behind before the page renders.

        "Andreas Heusler" wrote:
        [color=blue]
        > Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
        > page, so the IFRAME's src property can be set by server-side code?
        > Thanks
        > AH
        >
        >
        >[/color]

        Comment

        • OHM \( Terry Burns \)

          #5
          Re: IFRAME reference in code-behind?

          Yes, I think this should work

          --
          OHM ( Terry Burns )







          "JV" <johnNOSPAMme@g oisc.com> wrote in message
          news:uD6gi3UMFH A.244@tk2msftng p13.phx.gbl...[color=blue]
          > Haven't specifically tried an IFrame, but it should be possible to access
          > any HTML object/tag in your document as long as you mark that tag with
          > RUNAT=SERVER
          >
          >
          > "Andreas Heusler" <aheusler@gramm atik.biz> wrote in message
          > news:OdSFNXUMFH A.1528@TK2MSFTN GP09.phx.gbl...[color=green]
          >> Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
          >> page, so the IFRAME's src property can be set by server-side code?
          >> Thanks
          >> AH
          >>
          >>[/color]
          >
          >[/color]


          Comment

          • Steve C. Orr [MVP, MCSD]

            #6
            Re: IFRAME reference in code-behind?

            You can turn any HTML snippet into server side code by adding the
            Runat=Server attribute to the tag.
            Here's a detailed example of using the IFrame tag from server side code:


            --
            I hope this helps,
            Steve C. Orr, MCSD, MVP
            HALOJP adalah situs slot online resmi terpercaya yang tawarkan akses gampang maxwin. Cukup depo 10k, nikmati ribuan game gacor dengan sistem aman dan pembayaran lancar.



            "Andreas Heusler" <aheusler@gramm atik.biz> wrote in message
            news:OdSFNXUMFH A.1528@TK2MSFTN GP09.phx.gbl...[color=blue]
            > Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
            > page, so the IFRAME's src property can be set by server-side code?
            > Thanks
            > AH
            >
            >[/color]


            Comment

            Working...