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