G
Guest
I have a variable on a Code Behind page that is declared Private x as
integer. Somewhere in a method on that page I set the value of x to 5. When
a post back occurs the variable is set back to 0. Therefore the solution is
to save the variable to a Session variable so that when I need to refer to
it, it still holds it value. Is this correct or am I missing something?
integer. Somewhere in a method on that page I set the value of x to 5. When
a post back occurs the variable is set back to 0. Therefore the solution is
to save the variable to a Session variable so that when I need to refer to
it, it still holds it value. Is this correct or am I missing something?