asp.net - Failed to load viewstate -


I have an ASPX page that loads user controls dynamically: there is an update panel that keeps these controls (Once each). When I change a control with another that fails with the message:

Failed to load the viewstate The control tree in which the viewstate is being loaded should match the control tree that was used to save the viewstation during the previous application. For example, when dynamically adding control, the controls added during the return must match the position and position of the controls added during the initial application.

All three controls get from .Web.UI.UserControl . Maybe I can solve the problem:

  1. Load three controls in the initial time and then hide two of them as if we needed it.
  2. Use three updated panels, control for each user.
  3. Any advice?
  4. Be sure that postback is in postbox mode by conditionally setting and manually updating Is not updating unwanted panels


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -