|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Event from one WebControl triggering an event in another Web controlHi,
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! 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 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! > 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! > >
Problem updating with TableAdapter in Detailsview.
Gridview right border on a per-column basis Validators - error message not showing when JS disabled & only server side validation occurs "AJAX" techniques for the ASPNET 2.0 TreeView control? aspx and ascx I need a chart control with a special feature ASP.NET 2.0 Intrinsic Treeview control errors on a specific machine HttpContext.Current.Session problem Sorting DataView problem Interactivity between placeholders & objectdatasouces |
|||||||||||||||||||||||