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. Get handle to iframe

Get handle to iframe

Scheduled Pinned Locked Moved ASP.NET
csharphelpquestion
2 Posts 2 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.
  • L Offline
    L Offline
    Larza123
    wrote on last edited by
    #1

    Hi! I have a page (A) with an iframe in it. In the iframe i have another page (B). Is there a way in codebehind (C#) to get a handle to from page(B) to page(A)? Please help! Thanx!

    G 1 Reply Last reply
    0
    • L Larza123

      Hi! I have a page (A) with an iframe in it. In the iframe i have another page (B). Is there a way in codebehind (C#) to get a handle to from page(B) to page(A)? Please help! Thanx!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      No, there isn't. Although the page in the iframe is visible inside the other page, they are in fact separate windows. The concept of separate windows is handled entirely by the browser, the server is not at all aware of the relation between the windows in the browser. What is sent to the server is just a request for a page, there is no information of where (or even if) the page will be displayed. The server just returns the response for the requested page, it has no way of accessing any other windows that the browser might have. If you want to access other windows, you have to put client script in the page that does that.

      --- It's amazing to see how much work some people will go through just to avoid a little bit of work.

      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