Did you create any dynamic Control like Dropdown in Grid view cell ?
Because When dynamic control is created then  it errors has happen

To avoid this Create template column in grid view then you any asp control




2009/9/9 Ana <[email protected]>

>
> Hi,
>
> In my page I have a Gridview and a FormView. For each row in the
> GridView, there's a linkButton *Details* that shows the FormView with
> the information about the selected record in the GridView.
> In the FormView, users are able to edit and delete records. However,
> every time I cancel the editing of a record and try to see the
> formview for this record (clicking in *Details* on the GridView), I
> have the following 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.
> --
>
> What is happening here? Why this error message in being fired?
>
> Thanks in advance,
>
> Ana




-- 
Regards
*******************
*C.Arun Kumar *
*******************

Reply via email to