Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Asp.net

Asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tejas_91
    wrote on last edited by
    #1

    How Can use or see Label or text in Iframe control in Asp.net...!!?

    Z W C 3 Replies Last reply
    0
    • T Tejas_91

      How Can use or see Label or text in Iframe control in Asp.net...!!?

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      This is not clear. Can you explain what you are trying to do?

      There are only 10 types of people in the world, those who understand binary and those who don't.

      1 Reply Last reply
      0
      • T Tejas_91

        How Can use or see Label or text in Iframe control in Asp.net...!!?

        W Offline
        W Offline
        wikizhao
        wrote on last edited by
        #3

        Passed by value to iframe

        1 Reply Last reply
        0
        • T Tejas_91

          How Can use or see Label or text in Iframe control in Asp.net...!!?

          C Offline
          C Offline
          Chirag Baroliya R
          wrote on last edited by
          #4

          FrameParent.aspx

          <form id="form1" runat="server">
          <asp:Label id="Label1" runat="server" Text="FrameParent.aspx Label1.Text"></asp:Label>
          <iframe id="IFrame1" src="TestFrame1.aspx" frameborder="1" scrolling="AUTO" title="TestFrame1" />
          <iframe id="IFrame2" src="TestFrame2.aspx" frameborder="1" scrolling="AUTO" title="TestFrame2" />
          </form>

          TestFrame1.aspx

          <form id="form1" runat="server">
          <div>
          <asp:Label id="Label1" runat="server" Text="TestFrame1.aspx Label1.Text"></asp:Label>
          <input type="button" onclick="onShowParentButtonClick();" value="Show Parent" />
          <input type="button" onclick="onShowFrame2ButtonClick();" value="Show Frame2" />
          </div>
          </form>

          <script type="text/javascript">
          <!--
          function onShowParentButtonClick()
          {
          alert(window.parent.document.getElementById('Label1').innerHTML);
          }
          // -->
          </script>

          <script type="text/javascript">
          <!--
          function onShowFrame2ButtonClick()
          {
          alert(top.frames['IFrame2'].document.getElementById('Label1').innerHTML);
          }
          // -->
          </script>

          TestFrame2.aspx

          <form id="form1" runat="server">
          <div>
          <asp:Label id="Label1" runat="server" Text="TestFrame2.aspx Label1.Text"></asp:Label>
          </div>
          </form>

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups