Access control from another control

Discussion in 'ASP .Net Web Controls' started by EvilGuyWhoEatsBrains, Jun 28, 2006.

  1. Hello

    I have an aspx page with 2 web user controls on it. What I need to do
    is access a public sub in the first control from the second. I need to
    do this to control the behaviour of it. (ie wether to display it or
    not).

    Thanks
     
    EvilGuyWhoEatsBrains, Jun 28, 2006
    #1
    1. Advertising

  2. Here are the details about how to communicate between controls:
    http://SteveOrr.net/faq/PassDataToUserControl.aspx
    http://SteveOrr.net/faq/PassDataFromUserControl.aspx
    http://SteveOrr.net/faq/PassDataBetweenControls.aspx

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://SteveOrr.net


    "EvilGuyWhoEatsBrains" <> wrote in message
    news:...
    > Hello
    >
    > I have an aspx page with 2 web user controls on it. What I need to do
    > is access a public sub in the first control from the second. I need to
    > do this to control the behaviour of it. (ie wether to display it or
    > not).
    >
    > Thanks
    >
     
    Steve C. Orr [MVP, MCSD], Jun 28, 2006
    #2
    1. Advertising

  3. You're my new hero. Thank you. :)

    Steve C. Orr [MVP, MCSD] wrote:
    > Here are the details about how to communicate between controls:
    > http://SteveOrr.net/faq/PassDataToUserControl.aspx
    > http://SteveOrr.net/faq/PassDataFromUserControl.aspx
    > http://SteveOrr.net/faq/PassDataBetweenControls.aspx
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD, MVP
    > http://SteveOrr.net
    >
    >
    > "EvilGuyWhoEatsBrains" <> wrote in message
    > news:...
    > > Hello
    > >
    > > I have an aspx page with 2 web user controls on it. What I need to do
    > > is access a public sub in the first control from the second. I need to
    > > do this to control the behaviour of it. (ie wether to display it or
    > > not).
    > >
    > > Thanks
    > >
     
    EvilGuyWhoEatsBrains, Jun 28, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nail
    Replies:
    0
    Views:
    1,583
  2. qwerty
    Replies:
    3
    Views:
    9,328
    Scott Allen
    Sep 30, 2004
  3. et
    Replies:
    1
    Views:
    541
    Yunus Emre ALPĂ–ZEN [MCSD.NET]
    Jun 29, 2005
  4. xz
    Replies:
    9
    Views:
    556
    James Kanze
    Jan 8, 2008
  5. et
    Replies:
    0
    Views:
    160
Loading...

Share This Page