D
Daves
still trying to set variables for use in all sub-pages...
thought I'd found the solution with global.ascx:
Application("connstring") = "...";
Session("UserID") = 0;
well it turns out the application and session objects are not pure system
int/string type of objects so that each time I access them I have to use a
cast eg
if ((int) Session("UserID") >0) ...
I think this is not a good way so how oh how can I just add constants to the
global class and then
if (global.UserID >0) ...
???
thought I'd found the solution with global.ascx:
Application("connstring") = "...";
Session("UserID") = 0;
well it turns out the application and session objects are not pure system
int/string type of objects so that each time I access them I have to use a
cast eg
if ((int) Session("UserID") >0) ...
I think this is not a good way so how oh how can I just add constants to the
global class and then
if (global.UserID >0) ...
???