Get Parent Control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shapper

    #1

    Get Parent Control

    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
  • Eliyahu Goldin

    #2
    Re: Get Parent Control

    myLiteralContro l.Parent.Parent .Parent

    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]


    "shapper" <mdmoura@gmail. comwrote in message
    news:cbc1572d-ceaf-4e1a-87fa-6da0286b50fe@q7 7g2000hsh.googl egroups.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

    Comment

    Working...