[Rainbowportal-devel] How to invoke LoadViewState of a customControle used by a PortalModuleControl
Brought to you by:
danijel_kecman,
manudea
From: Uwe L. <le...@sb...> - 2003-11-27 12:39:37
|
Dear Rainbow Developers, Sorry to bother you again, but i have searched the forum with no success. I Have a control derivated from PortalModuleControl. On the ascx Page is a customControl which override the Save- and LoadViewState methods. This custom control works fine in a test application. In Rainbow the LoadViewState method was *not* invoked only the SaveViewState. When i Add the CustomControl like the ModuleTitle to the ControlCollection LoadViewState was executed but i get the 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." Please help any hints are welcome -- -- Kind regards Uwe Lesta@SBS-Softwaresysteme.de |