What Is The Difference Between ViewState and SessionState?



What Is The Difference Between ViewState and SessionState?..

Answer / pooooo

Session State contains information that is pertaining to a specific session (by a particular client/browser/machine) with the server. It's a way to track what the user is doing on the site.. across multiple pages...amid the statelessness of the Web. e.g. the contents of a particular user's shopping cart is session data. Cookies can be used for session state.
View State on the other hand is information specific to particular web page. It is stored in a hidden field so that it isn't visible to the user. It is used to maintain the user's illusion that the page remembers what he did on it the last time - dont give him a clean page every time he posts back.

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Define thread? Explain about multithreading?

0 Answers  


Give an example of a ctype.

0 Answers  


What do you mean by directing?

0 Answers  


what is the need of using interface in program ex:if we have a program like this interface1() { void method1(); void method(); } class a1 : interface1 { a1 b = new b(); b.method1(); b.method2(); } so without using interface also we can achieve this then wat is the need to use the interface? plz give me the answer

1 Answers  


What does f mean in c#?

0 Answers  






class Program { void add() { int x=10, y=20; fun(); Console.WriteLine("{0}", sum); } void fun() { int sum; sum = x + y; } static void Main(string[] args) { Program f =new Program(); f.add(); } } Debug above program.....

3 Answers   HCL,


How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?

0 Answers   CDC,


What is Event - Delegate?

0 Answers  


What is the advantage of generics in c#?

0 Answers  


What is strongly typed in c#?

0 Answers  


What is foreach loop in c#?

0 Answers  


What is the use of static abstract class

5 Answers   Karur Vysya Bank KVB, Target,


Categories