Home All Groups Group Topic Archive Search About

Event from one WebControl triggering an event in another Web control

Author
21 Jun 2006 1:34 PM
George Leithead
Hi,

I have two WebControls.  The first is basically a form, and the second
consumes a Web service, based on the input from the first WebControl
form.

My question is this:  How do I get an event from the first WebControl
(such as the searchButton.Click), to trigger something in the second
Web Control?  Or BETTER, how do I get the second Web Control to listen
for an event fired from the first control (This would be preferred, as
there is always the possibility that the second WebControl does not
exist)?

Some examples would be appreciated.  If I resolve this, I will share
with the group!

Author
21 Jun 2006 6:18 PM
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
"George Leithead" <george.leith***@gmail.com> wrote in message
news:1150896886.510257.190580@p79g2000cwp.googlegroups.com...
> Hi,
>
> I have two WebControls.  The first is basically a form, and the second
> consumes a Web service, based on the input from the first WebControl
> form.
>
> My question is this:  How do I get an event from the first WebControl
> (such as the searchButton.Click), to trigger something in the second
> Web Control?  Or BETTER, how do I get the second Web Control to listen
> for an event fired from the first control (This would be preferred, as
> there is always the possibility that the second WebControl does not
> exist)?
>
> Some examples would be appreciated.  If I resolve this, I will share
> with the group!
>
Author
23 Jun 2006 2:59 PM
George Leithead
Steve,

That was good (appart from the anoying adverts over the contents of
your page!).  However, is there any way to get two components to
communicate without having to rely on the parent Page?  (also, any C#
examples would be appreciated!)

George

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
>
>
>
> "George Leithead" <george.leith***@gmail.com> wrote in message
> news:1150896886.510257.190580@p79g2000cwp.googlegroups.com...
> > Hi,
> >
> > I have two WebControls.  The first is basically a form, and the second
> > consumes a Web service, based on the input from the first WebControl
> > form.
> >
> > My question is this:  How do I get an event from the first WebControl
> > (such as the searchButton.Click), to trigger something in the second
> > Web Control?  Or BETTER, how do I get the second Web Control to listen
> > for an event fired from the first control (This would be preferred, as
> > there is always the possibility that the second WebControl does not
> > exist)?
> >
> > Some examples would be appreciated.  If I resolve this, I will share
> > with the group!
> >