Failed to load view state

V

VijayRama

Hi All,

Im using 2 grid views in a asp.net page. When click the edit option in
the 2 gridview it throws the below 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.

Please help.

Thanx in Advance
 
G

Gregory A. Beamer

Im using 2 grid views in a asp.net page. When click the edit option in
the 2 gridview it throws the below 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.

Please help.

Somehow you are corrupting or replacing viewstate. How you are doing
this, I am clueless, as there is not enough information.

One possibility is dynamically added controls.
Another is circumventing the postback mechanism.
Yet another is a failure ot have the correct viewstate setting on the
page.

Peace and Grace,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top