M
martin
Hi,
where is the best place to keep global variables in asp.net.
I want to load a value from a database when the application starts. I know
that i can load this is application_start which is fine. I also know that
mostly storing a global value in an application variable whould be good,
like
application("Variablename") = 5
However I don't wish to do this because application scope does not scale to
a web farm.
should I just do my database call at the start of every page or is there an
easier way.
cheers
martin.
where is the best place to keep global variables in asp.net.
I want to load a value from a database when the application starts. I know
that i can load this is application_start which is fine. I also know that
mostly storing a global value in an application variable whould be good,
like
application("Variablename") = 5
However I don't wish to do this because application scope does not scale to
a web farm.
should I just do my database call at the start of every page or is there an
easier way.
cheers
martin.