How to Access Parent Page (.aspx) control (IDs) from its child User Control (.ascx or .aspx) ?
I have in master page a view port, the center region contains a tabpanel where all site pages will be loaded. In the default panel i use <autoload of an aspx page(dashboard)> and in the dashboard i want to create a button to add a new panel in the tabpanel.
Can you help me!!
From Client Side in javascript
Quote:
Originally Posted by
Daniil
Hi,
Do you want to achieve it on server side? Then you should be able to create a respective user control property which would contain a parent control.
You can populate that property on creating of a user control stage.
For those who were looking for a client side answer :
declare a javascript function and use "parent.YourViewport.getComponent('YourPanel') " this way you will get, for example, your NorthPanel and then be able to collapse it or expand it !