Get Parent Control

Get Parent Control

am 10.01.2008 14:01:53 von Shapper

Hello,

I have the following control tree:

Panel A > Panel B > Panel C > Literal

How can I, in my literal DataBind event, get 3 controls "up" in the
control tree, i.e. Panel A

Thanks,

Miguel

Re: Get Parent Control

am 10.01.2008 14:19:23 von Eliyahu Goldin

myLiteralControl.Parent.Parent.Parent

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin

"shapper" wrote in message
news:cbc1572d-ceaf-4e1a-87fa-6da0286b50fe@q77g2000hsh.google groups.com...
> Hello,
>
> I have the following control tree:
>
> Panel A > Panel B > Panel C > Literal
>
> How can I, in my literal DataBind event, get 3 controls "up" in the
> control tree, i.e. Panel A
>
> Thanks,
>
> Miguel