I have a tool tip that has an .ascx form loaded to it; However, I'm looking for a way to let it the .ascx.cs access a control in the main page that the tooltip shows in. Is there a way to do so?
1 Answer, 1 is accepted
0
Marin Bratanov
Telerik team
answered on 15 Apr 2013, 11:25 AM
Hello Hosam,
The user control is, at this point a part of the page and can access it just like any other user control. For example, the this.Page property holds a reference to the parent page. You can then use the FindControl() method to get a specific control, or you can have a public property in the page's class that can be accessed by the user control (after casting the Page to the appropriate type) so it can affect its parent page. This is not influenced or related to the RadToolTipManager.
All the best,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.