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. Passing control to another frame

Passing control to another frame

Scheduled Pinned Locked Moved ASP.NET
questionhelptutoriallounge
4 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.
  • B Offline
    B Offline
    brian55
    wrote on last edited by
    #1

    I have 3 frames. Top, middle, bottom. I process some info in the top frame, store it in a session var. I then want the app to write the information out in the bottom frame. Int he bottom frame I read the session var and write it out but I can't see it. In general I seem to have a more fundamental conceptual problem. How does a frame know when to activate? In the above example, when I finish gathering the info I want in the top frame I then want the lower frame to write it. But how do I tell the lower frame that I am finsihed preparing the data and now you should to write it? Within the top frame I tried Response.Redirect(bottomframe) BUT that displayed the bottom frame where the top frame was. Obvisoulsy this is not what I wanted. I wanted the app to write the contents in the bottom frame. Thanks in advance Brian

    R 1 Reply Last reply
    0
    • B brian55

      I have 3 frames. Top, middle, bottom. I process some info in the top frame, store it in a session var. I then want the app to write the information out in the bottom frame. Int he bottom frame I read the session var and write it out but I can't see it. In general I seem to have a more fundamental conceptual problem. How does a frame know when to activate? In the above example, when I finish gathering the info I want in the top frame I then want the lower frame to write it. But how do I tell the lower frame that I am finsihed preparing the data and now you should to write it? Within the top frame I tried Response.Redirect(bottomframe) BUT that displayed the bottom frame where the top frame was. Obvisoulsy this is not what I wanted. I wanted the app to write the contents in the bottom frame. Thanks in advance Brian

      R Offline
      R Offline
      Rizwan Bashir
      wrote on last edited by
      #2

      at the bottom of the top frame write the javascript to load the other form like parent.frames['bottomframe'].location="bottomPage.aspx" so after loading the top frame bottom frame will be loaded. hope this helps

      B 1 Reply Last reply
      0
      • R Rizwan Bashir

        at the bottom of the top frame write the javascript to load the other form like parent.frames['bottomframe'].location="bottomPage.aspx" so after loading the top frame bottom frame will be loaded. hope this helps

        B Offline
        B Offline
        brian55
        wrote on last edited by
        #3

        Thanks. It worked great. Quick question...can I make a similar call from with my c# code? It seems silly to have to to this in the aspx page. Brian

        R 1 Reply Last reply
        0
        • B brian55

          Thanks. It worked great. Quick question...can I make a similar call from with my c# code? It seems silly to have to to this in the aspx page. Brian

          R Offline
          R Offline
          Rizwan Bashir
          wrote on last edited by
          #4

          I dont think so. as the page on server side knows only the frame from where the data was posted. So no way in my knowledge. if any one else has done this then he has to share with us... :)

          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