ASP.Net ViewState doesn't work when Control become Enable=False

Posted by Daok on Stack Overflow See other posts from Stack Overflow or by Daok
Published on 2010-05-26T15:44:58Z Indexed on 2010/05/26 15:51 UTC
Read the original article Hit count: 333

Filed under:
|
|
|
|

Why when a control does contain value but it's set to .Enable=False that all controls become disable (that's ok) but why that the ViewState doesn't retain the data on the next post back? If I get the UserControl without modifing its Enable state, the ViewState work between post back.

How can we disable a UserControl that all its control become disable (this part work) but all of them KEEP use the ViewState (this doesn't work)?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET