Declaring Global variables in a WebService

S

sendhil

hi,
In the webservice which iam writing, i have to declare a an array
which has to be global. How and where shuld i declare it.
I declared it as

public static bool[] Busy = new bool[50];

but this doesnt seem to work. This array is reinitialized everytime.


Thanks
sendhil
 
M

Manni

To keep things over calls - place it in Application["xxxx"] or use
the Cache - wich gives you the same functionalty as Application with
greater control of the lifetime!!

HTH

Manfred
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top