Difference between viewstate, cache, session
Answers were Sorted based on User's Feedback
Answer / chinmayee mishra
SESSION: Variables are stored on the server, can hold any
type of data including references, they are similar to
global variables in a windows application and use HTTP
cookies to store a key with which to locate user's session
variables.
VIEWSTATE: Variables are stored in the browser (not as
cookies) but in a hidden field in the browser. Also
Viewstate can hold only string data or serializable objects.
CACHE: It refers to information that is reused in your
application, or information that is stored on your computer
so it can be reused. For example, if you download an image
from the internet, it's often cached so you can view it
again without downloading the image data. Caching is a form
of replication in which information learned during a
previous transaction is used to process later transactions.
To make web surfing faster, web browsers store recently
visited pages on the user’s disk. When the site is
revisited, the browser displays pages from the cache
instead of requesting them from the server. Reloading
brings up the current page from the server.
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / govindarao konduri
view state:- This is common way to store the data in view state.View state is using 'hidden files' to store data.Advantage is performance.Disadvantage is if any cross post back occurs the view state will expires.
Caching:- The caching always store the resulted data.First time user send a request to server, the user required data will be stored in caching from the server.Next time onwards no need to go for server,we can get the information from the caching..
Session:- Session is very secure because it was located at server.Sessions are (2) types.
1.inproc
2.Out-process(its preferred)
*State server
*Sql server
| Is This Answer Correct ? | 3 Yes | 0 No |
For a server control, you need to have same properties like color maxlength, size, and allowed character throughout the application. How do you handle this?
Explain the difference between the web config and machine config.
What do you mean by role-based security?
Explain what is clr?
Describe the .net base class library.
Any body Having SHAREPOINT Material plzzz? please material to send prasad.k12@gmail.com
What is the file through which you can customize your asp.net application?
How can i include both C# and vb.net classes in same solution?
When Cookies are expired in ASP.NET?
0 Answers Sans Pareil IT Services,
What are the main components of the ADO object model? How are they used?
2 Answers HCL, Syntax Softtech,
What is a server farm in iis?
What does this do? gacutil /l | find /i about
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)