Acessing a control from a Content page codebehind

M

musosdev

Hi,

I'm struggling to access a ComponentArt Web UI TreeView, which is located on
my Master page, from my Content page. However, my masterpage is actualyl a
child masterpage. Therefore, the tree control im trying to access is on the
child master page, in an asp:Content control from the parent master.

I've been trying to do FindControl("tree"), and am receiving a null. I've
read that I need to use the ContentPlaceHolder, so..

this.Master.FindControl("Content1").FindControl("tree") - also returns null,
as does this.Master.FindControl("Content1")

Here's the structure..
Parent Master

Effectively, I'm in the Content Page, and I need to access the Tree. How can
I get to that control!?!?

Thanks,


Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top