This error mainly occurs during view state. Change: from one template to another template, for example, in the case of an element template, editing the element template in controls, such as form view, list view, detailed view, grid view in ASP.net (all frames);
While a change from the control states says Item Template ---> Edit Template following changes have changed
1) The controls will change (its identifier and state)
2) His position will change.
While view transformation, if any mail back, you will get Error as
Failed to load viewstate. The management tree into which to load ....
if you use a separate control for data binding (for example, button_button_Image_button events), you will get this error!
To avoid this error →> As soon as the state changes from one template to another in the method, you call the data source binding (do not call during post clicks or any post posting events).
Jax bikeike
source share