I have an odd question / problem.
I have a RadToolbar that is defined on an aspx page, but contains no items. I populate the menu completely programatically in code behind.
I have a need for an update panel / progress indicator on the page. If I include the toolbar within the reach of the updatepanel, IIS tosses the following error.
I thought it might have been related to viewstate being enabled, but I disabled it on the control (parent) and every item as it is added programatically.
Exception Details: System.Web.HttpException: 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 have a RadToolbar that is defined on an aspx page, but contains no items. I populate the menu completely programatically in code behind.
I have a need for an update panel / progress indicator on the page. If I include the toolbar within the reach of the updatepanel, IIS tosses the following error.
I thought it might have been related to viewstate being enabled, but I disabled it on the control (parent) and every item as it is added programatically.
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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Web.HttpException: 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.