Hi,
I am creating a simple module where I have have a list on the view.ascx control and currently I have an 'Add New' button.
The button calls in the click event
Response.Redirect(EditUrl(string.Empty, string.Empty, "Edit"));
When I click on the button I get the following error:
Corrupted Content Error
The page you are trying to view cannot be shown because an error in the data transmission was detected.
Looking in the event viewer, the following error is displayed :-
DotNetNuke.Services.Exceptions.ModuleLoadException: 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.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Modules.Events.Events.LoadModuleControl() --- End of inner exception stack trace ---
If I go into the module settings and turn off the "supports popups" option for the EDIT control it works perfectly.
I am using DevExpress 13.1 asp.net controls in this module. Could they be interferring?
This is with DNN version 07.01.02 (356)