I usually use the following code in order to save my settings in the Settings page.
Dim objModules As New Entities.Modules.ModuleController
objModules.UpdateTabModuleSetting(TabModuleId, "NumberOfColumns", ddlNumberOfColumns.SelectedValue)
This is possible because the settings page inherits from Entities.Modules.ModuleSettingsBase and I can read the settings using the following code from the View page:
Dim NumberOfColumns As Integer = 4
If CType(Settings("NumberOfColumns"), String) <> "" Then
NumberOfColumns = CType(Settings("NumberOfColumns"), Integer)
End If
I have the following problem. I want to save a setting in my View page but it is not possible because the View page inherits from Entities.Modules.PortalModuleBase and the Settings property is read-only. Can someone suggest me a way to save settings in the View page?
Thanks in advance.