Comunicate controls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi to all....

I have a webform and inside 2 webcontrols like this....

Webform.aspx
|----------------------------------------------------
| Webcontrol1 |
| ____ |
| | | |
| |___ | |
| Webcontrol2 |
| _____________ |
| | | |
| | | |
| |____________| |
----------------------------------------------------

The webcontrol1 its a web custom control that create some links...
The webcontrol2 its some dinamic part, for example must show data from a database....
My dude is, how its the way to obtain that when you click in a link of the webcontrol1, the webcontrol2 show information depending the link... I dont know how to comunicate web custom controls....

Thanks to all
Josema.
 
Incorporate one or more events into each webcontrol.
Have the parent (the webform) subscribe to the events. When an event is
fired by a webcontrol, the webform can then call a method on the other
webcontrol.
Look up 'events' and 'delegates' in the C# doc.

Cheers
M

Josema said:
Hi to all....

I have a webform and inside 2 webcontrols like this....

Webform.aspx
|----------------------------------------------------
| Webcontrol1 |
| ____ |
| | | |
| |___ | |
| Webcontrol2 |
| _____________ |
| | | |
| | | |
| |____________| |
----------------------------------------------------

The webcontrol1 its a web custom control that create some links...
The webcontrol2 its some dinamic part, for example must show data from a database....
My dude is, how its the way to obtain that when you click in a link of the
webcontrol1, the webcontrol2 show information depending the link... I dont
know how to comunicate web custom controls....
 
Back
Top