ViewStateMode property in Asp.Net 4.0

Posted by AspOnMyNet on Stack Overflow See other posts from Stack Overflow or by AspOnMyNet
Published on 2010-04-23T17:43:38Z Indexed on 2010/04/23 17:53 UTC
Read the original article Hit count: 304

Filed under:
|
|

I haven’t yet started learning Asp.Net 4.0, but I did read a bit on ViewState, where there is a new property ViewStateMode. In earlier versions of Asp.Net, if parent control had its ViewState disabled, then child controls also had their ViewState disabled, even if their EnableViewState was set to true.

a) Thus if I understand it correctly, then a child control C having ViewStateMode property set to “Enable” causes C to save its view state, even if parent control has its view state disabled?

b) Is there a reason why ViewStateMode property hasn’t/couldn’t be implemented in earlier versions of Asp.Net?

thanx

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about viewstate