Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

handling in a control events raised from another control

Status
Not open for further replies.

olapol

Programmer
Feb 13, 2002
5
PL
I need to put two different controls on a WebForm. Control A raises an event "SearchDone". Control B should handle this event. The problem is, that control B doesn't see control A, so I can't add event handler for event SearchDone in control B. Is it possible to make control B aware that control A finished searching? How can I handle event SearchDone from control A in control B?

I would be really gratefull for any help.

 
Just add Controls D, E, and F and set their "Handle Control A through Control B" property to True.
;)

ok, but seriously, can you give us a bit more info on what it is you're trying to do (i.e. what type of controls are A and B, is your page posting back once its done searching, etc.)

Jack
 
Thank you for your advice ;-)

Details:
Control A is my own Web User Control, named SearchControl.
I use it to filter objects from database (by name, address, city ect.). It has a DataGrid which alows to choose one of the filtered object by clicking on hyperlink. Control B is another Web User Control, named Details, which displays details of the choosen object. I would like control SearchControl to send an event when searching is done and (another event) when selection of object changes. And my second control, Details, should handle this event and refresh displayed data.

Is it clear enough now? I would be grateful for further suggestions ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top