开发者

ViewState content when there are no controls on the page

开发者 https://www.devze.com 2022-12-22 10:01 出处:网络
When you create an AS开发者_StackOverflow社区P.NET page with no controls and runs it, a view state hidden field is added.

When you create an AS开发者_StackOverflow社区P.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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消