Saturday, January 29, 2011

Where is the ViewState value stored?

When we write something to a ViewState object a hidden field is created in the HTML whose value is encrypted. During a PostBack this value travels along with the page to the server and comes back. Because of this reason we should not store large values in Viewstates as they become heavy.

Ex: < input name="__VIEWSTATE" value="dDwtMTY3MTY4OTI3NDs7Pr AYZq+d1r V++f3rE2ngBQMU9l5h" type="hidden">

No comments:

Post a Comment

Ajax CalendarExtender displaying at wrong position in Chrome

< script type ="text/javascript" language ="javascript">     function onCalendarShown(sender, args)...