My problem was that I was inheriting from ProfileBase and updating the properties like so.
[SettingsAllowAnonymous(false)] public int gender { get { var o = base.GetPropertyValue("gender"); if (o == DBNull.Value) { return 0; } return (int)o; } set { base.SetPropertyValue("gender", value); } }
I was trying to be clever and used an enumerated type for the property but it seems it didn't like that. String, Int & DateTime types are all OK.
How to update the value of a 'radiobutton list' property in .Net
I've some .Net code that updates a bunch of properties for a member using
base.SetPropertyValue("lastname", value);
I've just added a gender property using a radiobutton list
I know the XML value should be something like <![CDATA[32]]> but I'm struggling to figure out how to update this new property. These all fail.
Regards,
Matt
My problem was that I was inheriting from ProfileBase and updating the properties like so.
I was trying to be clever and used an enumerated type for the property but it seems it didn't like that.
String, Int & DateTime types are all OK.
is working on a reply...