Home All Groups Group Topic Archive Search About

Access control from another control

Author
28 Jun 2006 12:33 AM
EvilGuyWhoEatsBrains
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

Author
28 Jun 2006 5:03 AM
Steve C. Orr [MVP, MCSD]
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


Show quoteHide quote
"EvilGuyWhoEatsBrains" <nokittymypot***@gmail.com> wrote in message
news:1151454839.450562.226960@x69g2000cwx.googlegroups.com...
> 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
>
Author
28 Jun 2006 2:29 PM
EvilGuyWhoEatsBrains
You're my new hero. Thank you. :)

Steve C. Orr [MVP, MCSD] wrote:
Show quoteHide quote
> 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" <nokittymypot***@gmail.com> wrote in message
> news:1151454839.450562.226960@x69g2000cwx.googlegroups.com...
> > 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
> >