Failed to load viewstate error in asp.net

332 views Asked by At

I have a gridview on my aspx page, wherein i have item and edit templates, on of the column contains the buttons for the edit and delete, once user click on the edit button the row should be enable for the editing and buttons would be changing to the update and cancel, it works on all the other forms i have created on the site, but on this specific page, whenever user clicks on the edit button, nothing happens, again if he tries, he is presented with this error message:

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 didn't understood where i am going wrong.

Does anyone have any idea what would be going wrong with this.

0

There are 0 answers