Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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 asp.net 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?
sincerely
I am waiting online!!!