Global Variables...

  • Thread starter Thread starter John Sedlak
  • Start date Start date
J

John Sedlak

Hello, I am making a database driven website that allows
the user to login and do some stuff all around my
website. I was wondering what file I could use for global
variables and functions. Or is there a better way to do
this? Thanks.
 
Hi John,

For global functions, I usually add a new Class to the project (called
something like global.vb) and import it into my code behind pages.

You can also use the session object to store valiables/objects.

hth,

Michelle
 
Global. asax and by extension Global.asax.cs/vb is there that purpose.
Global usage should carry a warning label because of concurrency violations.
Take care to protect access to the method or objects
 
Back
Top