1. What is the difference between Cache and Session?
2. I cache limited to page like viewstate or it's accessible
through out the application like session?
3. Which one is better when I've some data that is to be
used across the application? Why is to better than the other?
Answers were Sorted based on User's Feedback
Answer / praveen singh
1.
A. Sessions may not improve performance whereas Cache will
improve site performance.
B. Sessions may change from user to user whereas a single
Cache will be maintained for the entire application.
C. Cache wont maintain any state, whereas Sessions will
maintain separate state for every user.
2.
Yes Cache is accessible through out entire application
3.
Application beacuse application object is share by entire
application.
| Is This Answer Correct ? | 17 Yes | 1 No |
Answer / vasanth
Caching is storing data in memory for quick access. Typically information that is costly to obtain (in terms of performance) is stored in the cache. One of the more common items stored in a cache in a Web application environment is commonly displayed database values; by caching such information, rather than relying on repeated database calls, the demand on the Web server and database server's system resources are decreased and the Web application's scalability increased.
Session variables can also be used to cache information in classic ASP, although, as with the cookie approach each session variable is specific to a particular user, and to tie a session variable to a particular user the user's browser must accept cookies. The advantages of using session variable's over cookies is that you can store objects, such as an array, or Dictionary object. Since session variables are stored on the Web server's memory, storing large objects in a user's session on a site with many simultaneous users can lead to reduced memory on the Web server.
| Is This Answer Correct ? | 2 Yes | 0 No |
when is the role performed by IIS sever when ever a request send from browser
What is WCF
What are the intrinsic objects present in ASP.NET
Write a code for "RequiredFieldValidator" in java script
What is the significance of finalize method in .net?
Write some code using interfaces, virtual methods, and an abstract class`
What does the "EnableViewState" property do? Why would I want it on or off?
is it possible to persiste customize object in view state? how it is?
In which event of the page life cycle, is the viewstate available?
What is WebService ?
8 Answers Tanla Solutions, Yahoo,
Types of caching ?
1 Answers Digital GlobalSoft, MicroSec, Wipro,
What definition correctly defines a label server control with the name set to lblHoop? a) <asp:Label name=?lblHoop? runat=?server? /> b) <Label id=?lblHoop? runat=?server? /> c) <asp:Label id=?lblHoop? runat=?server? /> d) <server label name=?lblHoop? runat=?asp? />
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)