Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manipulating controls on other frames (pages)

Status
Not open for further replies.

NusPieds

Programmer
May 6, 2003
2
US
My web app uses 3 frames (banner, table of contents, and main area). Is it possible from one page to access/manipulate controls in the other frames?

The situation is, for example, when I'm processing stuff in the main area and when an ASP button is clicked, I'd like to maniuplate other ASP controls in the banner and table of contents frames/pages.

Is this possible?

Thanks,

NP
 
It's possible but not easy. You need to use client side script to post back the page behind the frame(s), when the processing is activated on the top level page, and then you need to handle the Post Back event as you normally would on the page that is the source for the frame. To handle multiple event types, you can use the Session object so when a user interactes and starts processing off, write a variable to the Session object, which can then be read by the Pages behind the frames as they are posted back, allowing you to control what top level event produces what effect of the pages behind. I may have some examples, if you want something let me know and I'll try to dig them out...

Rhys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top