I'm trying to create an _Edit file with a FileManager to choose a template.
<dw:FileManager ID="FrontEndTemplate" runat="server" folder="/Templates/CustomModuleXPTO/" />
On the top I have the control on the settings list:
<dw:ModuleSettings id="ModuleSettings1" runat="server" ModuleSystemName="CustomModuleXPTO" Value="FrontEndTemplate" />
It is loading correctly by using this code:
protected void Page_Load(object sender, EventArgs e) { Properties properties = Properties.LoadProperties(); if (properties.Values["FrontEndTemplate"] != null) { FrontEndTemplate.Value = properties.Values["FrontEndTemplate"].ToString(); } }
The problem is when I save the changes. It stores an error page on the database. It stores the content of the page here attached with the title "The state information is invalid for this page and might be corrupted".
It seems like there was a "ViewStateException: Invalid viewstate"...
Did this happened with anybody else?
Thanks,
Diogo Lino