Hello,
I have used multiview control and in that i used grid view and formview. I am using objectdatasource to fill the data.
While i am editing at first time i didn get any problem. After that again i clicked on edit button of grid. At that i a getting the following error.
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.
Please tell me the solution. It is urgent.
Thanks,
Solution To run Time error
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Santhosh NRank #4,788 · 325 reputationPosted Jan 10, 2011, 8:28 PM EST
http://weblogs.asp.net/alessandro/archive/2008/01/04/failed-to-load-viewstate-typical-problem-with-an-obvious-solution.aspx