Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 22, 2012 02:05 PM by roopeshreddy
Feb 16, 2012 06:39 AM|LINK
Hi I am Reading this article on view state, and it tells that the view state of controls are different from the view state of page,
I think i am wrongly understand it or there is a different view state created for page and controls
Feb 16, 2012 07:03 AM|LINK
It's very true that Page's viewstate and Control's viewState is different. Consider and example. You need to store some data in view state. So you uses ViewState["somekey"] = "787878"; This value is no where related to your any of page's control. Another
way is you have value of text box which will be stored in ViewState. This control's view state will help to retain value in textbox even after postback. That's how both page and control viewstate are different. But remember both are stored only in one internal
hidden field control "__VIEWSTATE".
Feb 22, 2012 08:39 AM|LINK
You can find the different between page viewstate and control viewstate. You can refer to the below links.
Feb 22, 2012 02:05 PM|LINK
Yeah! You can disable Page ViewState where as you cannot disable control state!
You can consider above user's explanation!
Hope it helps u...