views:

31

answers:

1

When you create an ASP.NET page with no controls and runs it, a view state hidden field is added.

Looking at what's in it (with ViewStateDecorder) reveals that there's a single value there that contains a number.

My question is - what is this number?

P.S. I guess this value appears on every page, with or without controls.

+2  A: 

The ASP.NET page stores a hash code in the "__VIEWSTATE" hidden field that is used to ensure that the view state hasn't been tampered with between postbacks.

Darin Dimitrov