H
Harold Crump
Greetings,
Is there a way using the .net framework to explicitly call a particular
event handler method in an object, say the Click event of a control?
The scenario is that I have two controls - an ImageButton and a
LinkButton.
When the LinkButton is clicked, I want to call the Click event handler
in the ImageButton.
Something like :
void LinkButton_Click(Object sender, EventArgs e)
{
ImageButton1.Click(sender, e);
}
This code doesn't compile but is there a way to do something like this?
More info - there will be several such "sets" of ImageButton/LinkButton
combos on the page.
Each LinkButton will know about the ImageButton it is "linked" to, but
they won't be aware of the other sets on the page.
Thanks.
Is there a way using the .net framework to explicitly call a particular
event handler method in an object, say the Click event of a control?
The scenario is that I have two controls - an ImageButton and a
LinkButton.
When the LinkButton is clicked, I want to call the Click event handler
in the ImageButton.
Something like :
void LinkButton_Click(Object sender, EventArgs e)
{
ImageButton1.Click(sender, e);
}
This code doesn't compile but is there a way to do something like this?
More info - there will be several such "sets" of ImageButton/LinkButton
combos on the page.
Each LinkButton will know about the ImageButton it is "linked" to, but
they won't be aware of the other sets on the page.
Thanks.