Home All Groups Group Topic Archive Search About
Author
5 Sep 2006 5:59 PM
Slavioglo
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.  

How I can solve this problem?

Author
5 Sep 2006 6:39 PM
Teemu Keiski
Hi,

create controls in Init, or create them exactly in same position as on
previous request, opr use other means to emulate dynamic controls (with
databound controls like Repeater). More information on dynamic controls:

http://aspadvice.com/blogs/joteke/archive/2006/01/06/14568.aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke


Show quoteHide quote
"Slavioglo" <Slavio***@discussions.microsoft.com> wrote in message
news:0F7D58F6-52CD-4EB2-A91A-3899C609E600@microsoft.com...
> 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.
>
> How I can solve this problem?