Can i access "child" page controls from "parent" page?
Preferable in code-behind
Appreciate any suggestions
2 Answers, 1 is accepted
0
Peter Milchev
Telerik team
answered on 08 Jun 2020, 10:06 AM
Hello Yana,
When setting the ContentURL of the PageView, that means it will display the child page inside an iframe, so it is not possible on the server to access controls from the child page.
If the server-side is a must, then they should use UserControls instead of separate pages and ContentUrl.
Another option, depending on the project's requirements, is to register a script from the server, that would access the child page once it is loaded on the client-side:
Furthermore, you can use such a script that would access the child page and then trigger an AJAX request to the server with the values obtained from the child page.
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.