Click here to Skip to main content
15,917,618 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a page Default.aspx. And I have a dockmanger in it with id = "dmanager1"

And, I too have an UserControl named MyUserControl.ascx.

Now, I would like to access the "dManager1" from MyUserControl.ascx.

Note: My Default.aspx is not derived from Master page.

Thanks in advance,.
Posted

1 solution

From the User Control:

C#
var dockmanager = this.Page.FindControl("dmanager1");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900