How do you count the number of button clicks?
Code:
int count; if (Label1.Text == "") { Label1.Text = (count + 1).ToString(); count++; } else { count = Convert.ToInt32(Label1.Text); Label1.Text = (count + 1).ToString(); }
Comment