Wednesday, February 25, 2009

Failed to load viewstate.

if you encounter this error


Failed to load viewstate. The control tree into which viewstate is being loaded
must match the control tree that was used to save viewstate during the previous
request. For example, when adding controls dynamically, the controls added
during a post-back


Make sure the related control is set to false

EnableViewState="false"



No comments: