I'm trying to add some properties to controls, but I'm having some problems.
I get the control as a CmsWebControl, and then I try to add the properties.
I've tried using Properties.Add(property), Properties_static.Add(property), PropertiesToPersist.Add(property.Name), and then I've saved using a CmsManager, but the changes are not saved.
CmsManager manager =
CmsWebControl webControl = manager.GetControl(
CmsControlProperty property =
property.ControlID = webControl.ID;
//here I tried that other ways, but no one worked
If I check the webControl.Properties, my properties are there, but when I get the control again using the CmsManager, they are not there.
Is there a right way to add Properties to a control, but it needs to be a way that works for all types of control (Sitefinity controls, ASP controls, User Controls)?