hi below i have a snippet of a very simple piece of code i have used in a webapplication in C#
private void btnFire_Click(object sender, System.EventArgs e)
{
test++;
lblOne.Text =""+test;
}
when the button is clicked once. the number 1 shows in the label. after another click it should turn to 2, then 3 etc. however it stays at one and the label does not update any further. it works on a windows application though. can anybody explain why? thanks in advance.
private void btnFire_Click(object sender, System.EventArgs e)
{
test++;
lblOne.Text =""+test;
}
when the button is clicked once. the number 1 shows in the label. after another click it should turn to 2, then 3 etc. however it stays at one and the label does not update any further. it works on a windows application though. can anybody explain why? thanks in advance.