F
Fred Nelson
Hi:
I'm a relative newby so hopefully this is a simple question!
I have found that I can create global variables easily on a web page by
placing the dim statement before the first "private sub" in a program:
dim mydata as (whatever)
Public Sub Page_Load(etc..)
End Sub
This makes information that I place in this global variable available to
every click event on the page that I create just as it does in regular
VB.NET apps.
I'm curious to know if this is not a "best practice" - is info left in
memory if the user clicks away - or is this a "great practice". I haven't
seen any demos that use this so I'm curious if there is a down side
Thanks very much!
Fred
I'm a relative newby so hopefully this is a simple question!
I have found that I can create global variables easily on a web page by
placing the dim statement before the first "private sub" in a program:
dim mydata as (whatever)
Public Sub Page_Load(etc..)
End Sub
This makes information that I place in this global variable available to
every click event on the page that I create just as it does in regular
VB.NET apps.
I'm curious to know if this is not a "best practice" - is info left in
memory if the user clicks away - or is this a "great practice". I haven't
seen any demos that use this so I'm curious if there is a down side
Thanks very much!
Fred