Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
where is view state is stored
Posted
Updated 8-Mar-12 7:06am
v2
Comments
wizardzz 8-Mar-12 13:34pm    
homework?

in hidden field view state value store
 
Share this answer
 
In the same location I told you when you asked the question here[^]. It hasn't changed
 
Share this answer
 
In hidden field the value is stored
 
Share this answer
 
View State stored the value of page controls as a string which is hashed and encoded in some hashing and encoding technology. It only contain information about page and its controls. Its does not have any interaction with server. It stays along with the page in the Client Browser. View State use Hidden field to store its information in a encoding format.
Suppose you have written a simple code , to store a value of control:
C#
ViewState["Value"] = MyControl.Text;

Now, Run you application, In Browser, RighClick > View Source ,
look at the value. looks likes a encrypted string.(This is Base64 Encoded string, this is not a encoded string. So it can easily be decoded.)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900