Re: Is it possible to change global.asa from asp by Bob
Bob
Thu May 06 05:51:03 CDT 2004
Cecil Westerhof wrote:
> With global.asa application variables can be set. Later can a script
> in your application change the value of those variables. But when IIS
> is restarted the old values are used again. Is there a way to get the
> changes that are done into global.asa?
While it may be possible, I do not recommend it. Instead, you should move
away from hard-coding those values into your global.asa. Instead, use code
in global.asa to read the values from some external source, such as a
database or an xml file, both of which are easy to modify at runtime.
My recommendation is based on my bias against hard-coding any "magic" values
into any code, not just global.asa.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"