GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 142 of 164    Print  
what is the difference between application state and caching

  
Total Answers and Comments: 3 Last Update: September 10, 2009     Asked by: manjunath 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: me.seenu
 
Application variable is the global variable specific to application but a
caching variable is specifc to page and time out.



Above answer was rated as good by the following members:
mangayar
December 06, 2007 05:11:08   #1  
me.seenu Member Since: November 2007   Contribution: 4    

RE: what is the difference between application state and caching
Application variable is the global variable specific to application but a
caching variable is specifc to page and time out.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
June 29, 2009 00:57:33   #2  
mangayar Member Since: June 2009   Contribution: 1    

RE: what is the difference between application state and caching
Application variables exist as long as the application is alive. Whereas the cache has the Property of timeout which allows us to control the duration of the Objects so cached.
Another usefulness in caching is that we can define the way we cache our output since caching can be done in 3 ways -
a) Full Page - defined in page directrive
b) Partial Page - Eg - .ascx control
c) Data / Programatic caching. using the Properties of Cache object such as Cache.Insert .

NOTE:
Caching variable is specifc to page and time out
Application variable is the global variable specific to application

 
Is this answer useful? Yes | No
September 10, 2009 05:55:45   #3  
kirangiet Member Since: June 2009   Contribution: 24    

RE: what is the difference between application state and caching
Application Object and Cached Object both falls under Server side State Management.

Application object resides in InProc i.e. on the same server where we hosted our application.
Cache Object resides on server side/ DownStream/Client Side.

Application Object will be disposed once application will stop.
Cache Object can be disposed using Time based cache dependency.

Only one user can access Application Object at a time hence we have to lock it every time we modify it.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape