Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a isssue that on editing the gv it get edited and updates only once, Second tym i get this 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.

I have made enable view state of place holder false and still I am getting this error.
How to remove it ??
Plz help
Posted
Updated 18-May-12 23:48pm
v2
Comments
Stephen Hewison 19-May-12 7:37am    
This is a tough one. I've had it a couple of times. I think last time I ended up rebuilding the page. Google the error, there are lots of people who've experienced the same error with ultimately lots of different causes.. This is one such thread:
http://forums.asp.net/t/1295517.aspx/1

1 solution

I solved it by clearing the controls of grid view before binding the drop down list every time.. somehow it worked for me...:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900