473,471 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Application specific server-side variables

I use user session to store user-specific data, but how can I store
server-side data for the entire web-application?
My current solution is to define static fields - or something like that - in
a class.

Does have ASP.NET a mechanism to store such data?

Thanks,
Jamal
Nov 19 '05 #1
4 1056
Both the Application and HttpCache objects can do the job.

http://www.openmymind.net/index.aspx?documentId=6

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
<ja***@docUSA.com.nospam> wrote in message
news:u2**************@TK2MSFTNGP09.phx.gbl...
I use user session to store user-specific data, but how can I store
server-side data for the entire web-application?
My current solution is to define static fields - or something like that -
in a class.

Does have ASP.NET a mechanism to store such data?

Thanks,
Jamal

Nov 19 '05 #2

Static fields are one solution, but you could also consider the Cache
object - particularly if the data is volatile.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 5 May 2005 17:26:19 +0430, <ja***@docUSA.com.nospam> wrote:
I use user session to store user-specific data, but how can I store
server-side data for the entire web-application?
My current solution is to define static fields - or something like that - in
a class.

Does have ASP.NET a mechanism to store such data?

Thanks,
Jamal


Nov 19 '05 #3
JV
Yes, it's the HttpApplication object.

You use it in the same way as Session: Application["SomeName"] =
someValue;
<ja***@docUSA.com.nospam> wrote in message
news:u2**************@TK2MSFTNGP09.phx.gbl...
I use user session to store user-specific data, but how can I store
server-side data for the entire web-application?
My current solution is to define static fields - or something like that -
in a class.

Does have ASP.NET a mechanism to store such data?

Thanks,
Jamal

Nov 19 '05 #4
Thanks everybody for your fast reply.

<ja***@docUSA.com.nospam> wrote in message
news:u2**************@TK2MSFTNGP09.phx.gbl...
I use user session to store user-specific data, but how can I store
server-side data for the entire web-application?
My current solution is to define static fields - or something like that -
in a class.

Does have ASP.NET a mechanism to store such data?

Thanks,
Jamal

Nov 19 '05 #5

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

Similar topics

9
by: Wayne Wengert | last post by:
I built an ASP application and it runs fine on my local IIS. I am trying to move the application to my web service (ISP) out on the internet. I've read several of the help articles but they all...
4
by: Ralph Krausse | last post by:
ViewState = "Bill"; -- This statement will send that to the browser and hash it into the __VIEWSTATE hidden varible Application = "Bill"; -- This statement will keep this info on the server ...
4
by: kanones | last post by:
I have some data that is been retrieved from a call to sql server stored procedure that I want to store for a period of time in a web farm architecture. I want to minimize the calls to sql server...
22
by: Jordan S. | last post by:
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one...
1
by: johnyjj2 | last post by:
Hello! I've got web application created for MSSQL and IIS. There are two directories in this application - Scripts and WebSite. In Script there is file CreateDb.sql. I need to run it so that it...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.