473,408 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Is it possible to change global.asa from asp

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?
Jul 19 '05 #1
3 1766
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"
Jul 19 '05 #2
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
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.


Is a good idea. I'll think about. At the moment they have not really decided
if they want the possibility to change the values through ASP. It is about
logging parameters. On the one hand they like the idea of changing the
values through the web. On the other hand they think it makes changing the
logging parameters to easy. But when they want, I'll do it in this way.
Jul 19 '05 #3
messing with the global.asa will probably terminate your current session on
the server anyhow

try saving the global while ppl r surfing, their sessionids will be
recreated, and sessions abandoned...

cheers :0)
"Cecil Westerhof" <so*****@microsoft.com> wrote in message
news:eJ*************@tk2msftngp13.phx.gbl...
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?

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

39
by: Mark Johnson | last post by:
It doesn't seem possible. But would the following also seem a violation of the general notions behind css? You have a DIV, say asociated with class, 'topdiv'. Inside of that you have an anchor...
4
by: g | last post by:
I'd like to have a CSS file for everything that's common to my site, and other CSS files that are specific to certain pages or groups of pages. When a page loads, it would load in BOTH the General...
0
by: beanweed | last post by:
BACKGROUND ---------- I have an ASP.NET application having two panels. In one panel, an XML document, transformed using xsl, is displayed. In the other panel are some controls that allow a user...
4
by: Kenneth P | last post by:
Hi, I have my asp.net apps on a web hotel, and thus I have whatsoever no control of the IIS on my server. If I make a change in the global.asax for my application,. what is needed to get the...
5
by: ad | last post by:
The Global.asax is code-inside with default. How to change Global.asax to code-behind?
10
by: MLH | last post by:
I wish to give someone an A97 database they can install on their PC as a runtime application. I want them to click a button on a form (frmDocumentMyPC). I want to document as much useful...
13
by: Alison Givens | last post by:
....... that nobody knows the answer. I can't imagine that I am the only one that uses parameters in CR. So, my question again: I have the following problem. (VB.NET 2003 with CR) I have a...
7
by: asdf | last post by:
The code I work on has a class called "CException" which gets thrown whenever there is an exception. Various other exception class derive from this. The ctor for the class CException prints...
0
by: thirunavukarasukm | last post by:
Hai.. Is thers possible to use module class in web application.. in web application i have one module class.. the module class one variable declared to assing particular value then i am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.