can not save custome property value.


I create a custome property names UserProfileProperty and also a class names UserProfile as the Value of that UserProfileProperty.

 UserProfile contains UserName,EMail,Birthday etc.

and also i create a web user control named UserProfileControl(it is a simple WebUserControl) for editor to edit that property.till now,the webcontrol works well,and editor can use it to input data however,the data can not be saved.

int the ApplyEditChanges i have get the UserProfile object from my  user control and set it to the PropertyData.value ;also we know that the text and DateTime the editor input are exist.

However,after the page was saved,the data disappeared, and we get a default UserProfile object in that Property...

we use the same way how we derive a simple custome property from the propertystring.. etc.  the only difference is that this property is a complext object other than a simple string or datatime.

i have marked  the UserProfile to be [Serializable] since i get an error message if i don't add this attribute.

i am not sure whether i really describe the proble clearly. so i am trying to just use one sentence to describe it again: what is the difference between the simple derived property and complex custome property?




I am waiting online!!!Cry


Apr 20, 2009 10:59
Personally I save the values as a XML-string or a comma-separeted string if it's not that complex. Never tried to save a serialized object, and I've never seen it either.
Apr 20, 2009 14:08
May 24, 2012 14:30
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.