Hello,
using dynamic registration 03.03.50 (note: this is version reported in DNN modules list, DLL are both 2.3.0.0), I'm trying to add some optional questions to my registration process: first step is simple as displaying or hiding a field based on a previous response.
I created a combobox with values from a sql table, and a first value like "select an option" and a value of 0. I want to display another field when user selects one of the options, so I:
- configured the combo
- set up a question as hidden ("Hide until forced visible by question event.: ")
- added a Question Event of type "display hidden question...", selected the combo as initiation response, a value from its option as initiation response, and the hidden question as "affected question".
The problem is my form always generates an error whenever I select the specified option (the one that should cause the hidden field to be displayed). No error if I select other options.
As far as I can see, my configuration should be right... why do I get this error?
Message: DotNetNuke.Services.Exceptions.PageLoadException: 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. ---> 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. at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at System.Web.UI.HtmlControls.HtmlTable.HtmlTableRowControlCollection.Add(Control child) at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) at System.Web.UI.HtmlControls.HtmlTable.HtmlTableRowControlCollection.AddAt(Int32 index, Control child) at System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(HtmlTableRow row) at DataSprings.Modules.DynamicRegistration.DynamicRegistration.PaintTheQuestions(Boolean blnReadOnly, Int32 MyUserID, Boolean blnGetData) --- End of inner exception stack trace ---
|