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. How can I retrieve the source code of the content in an iframe.

How can I retrieve the source code of the content in an iframe.

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
5 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.
  • A Offline
    A Offline
    a_b111
    wrote on last edited by
    #1

    I am working in asp.net 2.0 I have an iframe on my page, How can I retrieve the source code of the content in this iframe. Source(src) of this iframe is in different domain. Thanks in advance.

    D A M 3 Replies Last reply
    0
    • A a_b111

      I am working in asp.net 2.0 I have an iframe on my page, How can I retrieve the source code of the content in this iframe. Source(src) of this iframe is in different domain. Thanks in advance.

      D Offline
      D Offline
      Dominic Goulet
      wrote on last edited by
      #2

      I would do a document.getElementBydId("iframeId").innerHTML.

      ______________________ Dominic Goulet FroggedSoft

      1 Reply Last reply
      0
      • A a_b111

        I am working in asp.net 2.0 I have an iframe on my page, How can I retrieve the source code of the content in this iframe. Source(src) of this iframe is in different domain. Thanks in advance.

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Read Controls InnerHTML.

        cheers, Abhijit My Recent Article : Beginner's Guide To View State

        D 1 Reply Last reply
        0
        • A Abhijit Jana

          Read Controls InnerHTML.

          cheers, Abhijit My Recent Article : Beginner's Guide To View State

          D Offline
          D Offline
          Dominic Goulet
          wrote on last edited by
          #4

          In JScript it's innerHTML As far as I know, document.getElementById is a jscript method ;)

          ______________________ Dominic Goulet FroggedSoft

          1 Reply Last reply
          0
          • A a_b111

            I am working in asp.net 2.0 I have an iframe on my page, How can I retrieve the source code of the content in this iframe. Source(src) of this iframe is in different domain. Thanks in advance.

            M Offline
            M Offline
            Muhammad Gouda
            wrote on last edited by
            #5

            Why do you use IFrame? use MasterPage instead

            foreach(Minute m in MyLife) myExperience++;

            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