A
Adam222
hey there all..
I have a page with a DataList in it
on the DataList_ItemDataBound functio
I add a few
LiteralControl lit = new LiteralControl(html)
the HTML contains only "<img src='photo/111.jpg'>
the loading is fine
but when I try to PostBack the page to the Server, 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 tried to remove this items(ViewState.Remove("lit") - did not wor
I tried to make DisableViewState(lit.EnableViewState=false; and EnableViewState=false - did not help o
did not post back the other object on the page to the server
what can I do, to still postBack the items to the server & not get this error
10x Ada
I have a page with a DataList in it
on the DataList_ItemDataBound functio
I add a few
LiteralControl lit = new LiteralControl(html)
the HTML contains only "<img src='photo/111.jpg'>
the loading is fine
but when I try to PostBack the page to the Server, 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 tried to remove this items(ViewState.Remove("lit") - did not wor
I tried to make DisableViewState(lit.EnableViewState=false; and EnableViewState=false - did not help o
did not post back the other object on the page to the server
what can I do, to still postBack the items to the server & not get this error
10x Ada