Greetings.
I have a module that works fine under DNN 4.08.04. On its settings page, it gives the user the ability to set the RedirectAfterLogout property that is under Admin-->UserAccounts-->UserSettings. The setting is retrieved like this:
if (UserController.GetUserSettings(PortalId).ContainsKey("Redirect_AfterLogout"))
value = UserController.GetUserSettings(PortalId)["Redirect_AfterLogout"].ToString();
This retrieves the correct tab id under DNN 4.08.04, but under DNN 5.05.00 it retrieves -1.
I found I could retrieve the correct tab id under DNN 5 by using the following code:
ModuleInfo objModule = controller.GetModuleByDefinition(this.PortalId, "User Accounts");
Hashtable htModuleSettings = controller.GetModuleSettings(objModule.ModuleID);
if (htModuleSettings["Redirect_AfterLogout"] != null )
value = htModuleSettings["Redirect_AfterLogout"].ToString();
The following code is used to update the setting. Again, it works in DNN4 but not in DNN5.
ModuleInfo objModule = controller.GetModuleByDefinition(this.PortalId, "User Accounts");
controller.UpdateModuleSetting(objModule.ModuleID,"Redirect_AfterLogout", ddlDNN_LOGOFF_TABID.SelectedValue.ToString());
controller.UpdateModule(objModule);
Does anyone know what was changed between DNN4 and DNN5 that would explain this behavior? And a way to restore the prior functioality?