开发者

ViewState content when there are no controls on the page

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜