Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Application variable

Reply
Thread Tools

Application variable

 
 
Aaron
Guest
Posts: n/a
 
      01-01-2004
Is it the same as cache in asp.net?

how do you load an app var in asp.net (C#)? Can you use app variable
in a windows app?(.exe)

thanks
 
Reply With Quote
 
 
 
 
Paul Glavich
Guest
Posts: n/a
 
      01-02-2004
No, an app variable is not the same as cache. The cache
has dependencies associated with (like expire by
date/time or variable value) and the runtime will also
remove items from the cache when memory gets low, whereas
app variables dont have any of those features.

The concept of an application variable in ASP.NET is
different to a windows app as a windows app does not need
to specifically maintain state in any special way as it
simply resides in the memory of the executing machine.
Application variables require special work as typically
they are visible to all users/processes within your
site/appDomain and held on the server. Nothing in the way
of app variables are held on the client. The server must
determine what application your request belongs to and
make sure those application variables are visible to you.
Kind of like session varibales except those are per
user/session, as opposed to visible to all users like
application variables.

HTH,
- Paul Glavich



>-----Original Message-----
>Is it the same as cache in asp.net?
>
>how do you load an app var in asp.net (C#)? Can you use

app variable
>in a windows app?(.exe)
>
>thanks
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Variable variable name" or "variable lvalue" mfglinux Python 11 09-12-2007 03:08 AM
Public variable = application("variable") ? THY ASP .Net 3 09-04-2006 03:15 PM
SqlConnection Object in Application Variable OR Session Variable OR open/close pratham ASP .Net 3 08-31-2006 07:26 PM
Convert Character Variable to Integer Variable Brad Smallridge VHDL 2 11-18-2004 01:56 AM
How do I scope a variable if the variable name contains a variable? David Filmer Perl Misc 19 05-21-2004 03:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57