goatstudio
Programmer
Hi all,
I have a web form, and my page is coded in c#.
There is a button and a label in my webform, when I click on the button, the label should display +1.
My code as below:
protected void Button_Submit_OnClick (Object Src, EventArgs E) {
Label1.Text = "Total: " + (x++);
}
x is public variable in the page. The problem is this event only fire at the first time...and seems not firing at all at the second time.
Any clue?
Thanks!
regards,
vic
------------------
Freedom is a Right
I have a web form, and my page is coded in c#.
There is a button and a label in my webform, when I click on the button, the label should display +1.
My code as below:
protected void Button_Submit_OnClick (Object Src, EventArgs E) {
Label1.Text = "Total: " + (x++);
}
x is public variable in the page. The problem is this event only fire at the first time...and seems not firing at all at the second time.
Any clue?
Thanks!
regards,
vic
------------------
Freedom is a Right