H
Hai Nguyen
Hi all
I'm trying ing to create usercontrols dynamically and add them into a
placeholder. During a postback i got the following 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. "
Is there any way I can solve this problem?
I'm trying ing to create usercontrols dynamically and add them into a
placeholder. During a postback i got the following 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. "
Is there any way I can solve this problem?