We are using rad ajax panels in our system, and we are getting viewstate erros linked to the members clicking the back button in there browser.
Typical example.
- Member views page, and because they are not logged in, just see the login control.
- member logs in, and uses site
- member click back in browser, but browser has cached page, so they see the login box again
- member tries to login again, and gets viewstate 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 must match the type and position of the controls added during the initial request.
This doesnt happen, when we dont use ajax. the member obviously see the login box again, but it doesnt error if they login.
what can we do to stop these viewstate errors while using ajax?