Microsoft
Software
Hardware
Network
Question : How to maintain a value in memory for use by clases in asp.net Web Service
Hi Experts
I have a Web Service that establishes a dynamic database connection based on an initiql catalogue input value passed into the service. I have a number of classes that have methods that require them to connect to this database, but I am struggling with how to best provide the classes access to this value. I dont want to pass the value in to each class as a property so can I save the value as a string variable in memory somehow? I have tried using Session, but I can not then retrieve this from within the Class.
Any ideas?
Many thanks
Stewart
Answer : How to maintain a value in memory for use by clases in asp.net Web Service
I haven't found a better solution than this.
Here is an topic about a discussion with Session and shared function/classes.
http://forums.asp.net/t/12
39138.aspx
They also recommend HttpContext.Current
Random Solutions
VS 2003 with .NET Framework 3.5
PL/SQL Performance
Trying to redirect a user from http to https automatically. Windows 2008 running II7
How to commit changes of a Typed Dataset to database at once
SQL 2008 SP1 Ghost count!
Best Method for Reporting on and Editing Large Amounts of Data
C# 2005 how to Change the Target .NET Framework Version of an Existing Project
a program is attempting to send the following email message on your behalf - Windows Live mail
Computer restarted itself twice, event logs attached. Windows 7 Pro
Web Interface 5.3 PNAgent Site - Citrix Online Plug-in could not contact the server entered.