Link to home
Start Free TrialLog in
Avatar of Sunny_Kumar
Sunny_Kumar

asked on

Find Control on Parent Page From Web User Control ASP.NET

Hi all,

I have a web user control (i.e. control1_wuc.ascx). The web user control is in a page (default.aspx).

Default.aspx has a placeholder called "Main_PH." I want to access the control "Main_PH" from the codebehind of control1_wuc.ascx (the web user control). Does anyone know how to do this?

I hope I've explained things clearly. Below is the Hierarchal structure of things. Main_PH is what I'm after.

Default.aspx (ASPX Page)
- Main_PH (Placeholder on Default.aspx)
- control1_wuc.aspx (Web User Control on Default.aspx)
- - Method to get Main_PH from the code behind of control1_wuc.aspx??? <-- What I'm missing.

C# would be great :)

ASKER CERTIFIED SOLUTION
Avatar of masterpass
masterpass
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sunny_Kumar
Sunny_Kumar

ASKER

Thanks!