G
Guest
I am developing an ASP.NET app in C#. I am attempting to use an int as a
counter which will be incremented each time a user submits a webform adding
data to a list. Initially I tried to use a session variable, but had some
issues converting that value to an int. So I've tried using an int which is
declared as a class variable. However when I post back the page the int gets
reset back to zero. Is there a way to preserve the value?
counter which will be incremented each time a user submits a webform adding
data to a list. Initially I tried to use a session variable, but had some
issues converting that value to an int. So I've tried using an int which is
declared as a class variable. However when I post back the page the int gets
reset back to zero. Is there a way to preserve the value?