views:

26

answers:

1

I want to know in which format information is stored in view state, as it is quite useful for storing information during multiple postbacks.

+2  A: 

View state is the method that the ASP.NET page framework uses to preserve page and control values between round trips. When the HTML markup for the page is rendered, the current state of the page and values that must be retained during postback are serialized into base64-encoded strings. This information is then put into the view state hidden field or fields.

<input type="hidden" name="__VIEWSTATE"
 value="dDwxNDg5OTk5MzM7Oz7DblWpxMjE3ATl4Jx621QnCmJ2VQ==" /> 
Pranay Rana
But, you shouldn't rely on it being so, as microsoft do not guarantee that this will always be the format.
Oded
yeah.....................
Pranay Rana