G
Guest
Hi,
I'm just learning ASP.NET & would like to know how I can maintain he value
of a variable.
For example, say I start off with the variable value of 10 & for every click
I want to increment it by 1. How can I save that state between clicks &
increment them?
I'm using an ASPX page to do this (Webform I guess).
I've played around with the ViewState object but I can't get it to work.
Any ideas on how to do this would be most appreciated.
Mant thanks in advance
Ant
I'm just learning ASP.NET & would like to know how I can maintain he value
of a variable.
For example, say I start off with the variable value of 10 & for every click
I want to increment it by 1. How can I save that state between clicks &
increment them?
I'm using an ASPX page to do this (Webform I guess).
I've played around with the ViewState object but I can't get it to work.
Any ideas on how to do this would be most appreciated.
Mant thanks in advance
Ant