- Messages
- 6,990
- Location
- Toronto, Canada
Hey guys starting to learn a little C# now that I'm a C/C++ guru!
I'm writing some code that will increment/decrement a labels value depending on the radio button clicked in a list. The problem I'm having is that I don't want it to increment if I click on a radio with a value of 30 when going from a radio with a value of 40 the first time. It should go down by 10. But of course it doesn't save any variables with postback.
This is my code so far: test.txt
So if you could give any suggestions on how to save the last value in my "Prev" function that would be great.
I'm writing some code that will increment/decrement a labels value depending on the radio button clicked in a list. The problem I'm having is that I don't want it to increment if I click on a radio with a value of 30 when going from a radio with a value of 40 the first time. It should go down by 10. But of course it doesn't save any variables with postback.
This is my code so far: test.txt
So if you could give any suggestions on how to save the last value in my "Prev" function that would be great.