would you please tell me what is wrong with this code?
if (button1.Click = true)
{
this.label1.Text = "custom event";
}
Error is:
the event "...control.click" can only apear on the left hand side of += or -=
I have here a custom event which several buttons can cause.
But in the code I have to know which button caused that custom control.
thank you all


Shivanand ArurRank #920 · 2.3K reputationPosted Mar 3, 2013, 12:11 AM EST
protected void button1_click(object sender, Eventargs e)
{
this.label1.Text = "custom event";
}