Global Variables on a VB.NET Web Page
From: Fred Nelson (fred_at_smartybird.com)
Date: 02/26/04
- Next message: Z D: "Re: ASP.NET perfmon counters all 0 ... ??"
- Previous message: Kurt: "Client side script breaks after postback?"
- Next in thread: Kevin Spencer: "Re: Global Variables on a VB.NET Web Page"
- Reply: Kevin Spencer: "Re: Global Variables on a VB.NET Web Page"
- Reply: Alvin Bruney [MVP]: "Re: Global Variables on a VB.NET Web Page"
- Reply: Raterus: "Re: Global Variables on a VB.NET Web Page"
- Reply: Fred Nelson: "Re: Global Variables on a VB.NET Web Page"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Feb 2004 10:30:57 -0500
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
- Next message: Z D: "Re: ASP.NET perfmon counters all 0 ... ??"
- Previous message: Kurt: "Client side script breaks after postback?"
- Next in thread: Kevin Spencer: "Re: Global Variables on a VB.NET Web Page"
- Reply: Kevin Spencer: "Re: Global Variables on a VB.NET Web Page"
- Reply: Alvin Bruney [MVP]: "Re: Global Variables on a VB.NET Web Page"
- Reply: Raterus: "Re: Global Variables on a VB.NET Web Page"
- Reply: Fred Nelson: "Re: Global Variables on a VB.NET Web Page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|