M
mattdaddym
Hi, I have a variable question in regards to my asp .net page.
I need to declare a variable whose value is readable/writable to all
of the subroutines of a specific page. So far I have one of two
problems.
The first is if I declare my variable right after the class
definition, then I can use it anywhere, but the value does not persist
from one subroutine to the next.
The second is if I declare the variable as shared right after the
class definition, then I can use the value anywhere, but if I have 2
users, on two different computers, then they are accessing the same
values. I don't want this to happen.
Can this be done without using sessionstate? Thanks all.
I need to declare a variable whose value is readable/writable to all
of the subroutines of a specific page. So far I have one of two
problems.
The first is if I declare my variable right after the class
definition, then I can use it anywhere, but the value does not persist
from one subroutine to the next.
The second is if I declare the variable as shared right after the
class definition, then I can use the value anywhere, but if I have 2
users, on two different computers, then they are accessing the same
values. I don't want this to happen.
Can this be done without using sessionstate? Thanks all.