Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: PWS Configuration


Message #1 by "Tripp Bishop" <dyne_erg@y...> on Thu, 13 Dec 2001 00:33:42
Howdy all,



Quick question: is there a way to reload application variables in PWS? 

I've tried stopping and starting the "service" (this is on a win98 box) 

but that seem to force PWS to reload the Global.asa file. Also, is there 

any way to set the default buffering to "true" instead of "false"?



Thx,



Tripp
Message #2 by "Mark Phillips" <webmaster@d...> on Thu, 13 Dec 2001 00:54:02 -0000
You normally set up Application variables in the global.asa file, which only

runs once when the application first starts.



If you restart the service or stop and start the website then the global.asa

file is recompiled. If you actually make a change to global.asa this also

causes the application to restart.



If you want to change application variables without doing this, best thing

to do is to write a script and simply call that e.g. setappvars.asp - you

could put e.g. text boxes on it (variable name, value) and a submit button.



If you're cacheing lookup tables of data into arrays to populate dropdowns,

and want to repopulate the array when the dropdown values change then you'll

either need to "reload" the array in the page when the table updates, or put

the code in a separate script and include it.



If you do something like this, it's worth using Application.Lock and

Application.Unlock to wrap the code that repopulates the array so you don't

run into problems with two concurrent updates.



Mark



-----Original Message-----

From: Tripp Bishop [mailto:dyne_erg@y...]

Sent: 13 December 2001 00:34

To: ASPToday Discuss

Subject: [asptoday_discuss] PWS Configuration





Howdy all,



Quick question: is there a way to reload application variables in PWS?

I've tried stopping and starting the "service" (this is on a win98 box)

but that seem to force PWS to reload the Global.asa file. Also, is there

any way to set the default buffering to "true" instead of "false"?



Thx,



Tripp




  Return to Index