Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Suppose a Label control is there inside a page page1.aspx. I am refering that page inside pageMain.aspx as an iFrame. I need to access that Label control inside my pageMain.aspx in code behind(not in java script). How can I achieve this?
Posted

1 solution

You can't. The page in the IFrame is an entirely seperate request made after the container page has been loaded by the client.

However, you may be able to do something like this by
1. Refactoring the functionality of the child page into a user control and displaying that instead of the IFRAME.
2. Use JavaScript to modify/access the child content pages control tree.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900