This is a migrated thread and some comments may be shown as answers.

Access "child" page controls

2 Answers 97 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Yana
Top achievements
Rank 1
Veteran
Yana asked on 03 Jun 2020, 12:38 PM

My PageViews controlled by ContentUrl

Can i access "child" page controls from "parent" page?

Preferable in code-behind

Appreciate any suggestions

2 Answers, 1 is accepted

Sort by
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.

Regards,
Peter Milchev
Progress Telerik

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.
0
Yana
Top achievements
Rank 1
Veteran
answered on 10 Jun 2020, 08:35 PM

:(

Thank you though

Tags
TabStrip
Asked by
Yana
Top achievements
Rank 1
Veteran
Answers by
Peter Milchev
Telerik team
Yana
Top achievements
Rank 1
Veteran
Share this question
or