I have one dynamic property, let's call it globalProp.I'm changing the content by code like this:
PageData NewPage = CurrentPage.CreateWritableClone();NewPage.Property["globalProp"].Value = "Test";
But the dynamic property is always null (don't exists)... Even if I fill it with content manually in Edit mode.
Is the function CreateWritableClone not handling dynamic properties at all? And what to do if I want to manipulate those by code?
Regards, Andreas Ek, Internetfabriken.
Google, my Google, found the solution on the EPiServer site
DynamicProperty prop = DynamicProperty.Load(CurrentPage.PageLink, "globalProp"); prop.PropertyValue.Value = "Arne"; prop.Save();
/ Andreas Ek, Internetfabriken.
Hi,This is not an answer to the original question but i'm hoping to get an answer to my question.
How get I get hold of the dynamically created form field names and values? e.g. I have form fields like FirstName,LastName, PostCode but when i look on the page source code the are named as random numbers. I need their exact names and values in my Validator.Kind regards