Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > diff between Application object and static variable in asp .net

Reply
Thread Tools

diff between Application object and static variable in asp .net

 
 
=?Utf-8?B?R2FuZXNhbiBzZWx2YXJhag==?=
Guest
Posts: n/a
 
      07-06-2005

diff between Application object and static variable in asp .net. I can
access both the objects in my web page.
I will be grateful if some one can help me understand the difference.

Regards
Ganesan
 
Reply With Quote
 
 
 
 
Karl Seguin
Guest
Posts: n/a
 
      07-06-2005
Application is thread-safe. The minute speed increase you get from using
static variables doesn't mean much when you have to lock all access to them.

If your data is readonly, you can use static variables (since you don't care
if 2 users read at the same time)...or a constant if you know the data at
design time...but I tend to prefer configuration values even for this...

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!)


"Ganesan selvaraj" <Ganesan http://www.velocityreviews.com/forums/(E-Mail Removed)> wrote in
message news(E-Mail Removed)...
>
> diff between Application object and static variable in asp .net. I can
> access both the objects in my web page.
> I will be grateful if some one can help me understand the difference.
>
> Regards
> Ganesan



 
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
Diff. between List<Object> and ArrayList<Object>? usage samples? Gianni Galore Java 0 10-27-2010 04:52 PM
Diff CSS styles for diff INPUT TYPE='s? A Traveler ASP .Net 6 08-31-2004 09:17 PM
diff Process under diff users Cyril Vi?ville Perl 1 06-29-2004 06:22 PM
Same sessionID retuned to diff browsers in diff machines Berrucho ASP .Net 2 12-05-2003 02:23 PM
Exact difference between 'const char *' and 'char *', also diff between 'const' and 'static' Santa C Programming 1 07-17-2003 02:10 PM



Advertisments