B
Bruno Alexandre
hi guys,
because asp.net class has a livetime of a active webpage (soon the user
changed the page, all the values saved in the class is lost)...
how do you manage to pass this?
my idea was in global.asax create an application session like
dim myClassVar as myClass
Application.unlock()
Applicaion("myClass") = myClassVar
Application.lock()
and then in all the pages do
dim myClassVar as new myClass
inside Page_load
myClassVar = Application("myClass")
....
any other ideias..., cause like this I can't call the apllication variable
inside a new class!
because asp.net class has a livetime of a active webpage (soon the user
changed the page, all the values saved in the class is lost)...
how do you manage to pass this?
my idea was in global.asax create an application session like
dim myClassVar as myClass
Application.unlock()
Applicaion("myClass") = myClassVar
Application.lock()
and then in all the pages do
dim myClassVar as new myClass
inside Page_load
myClassVar = Application("myClass")
....
any other ideias..., cause like this I can't call the apllication variable
inside a new class!