I have a custom property in custom webpart that having Personalizable set to
PersonalizationScope.User, given below. I want that each user should have their own copy of this property. I am having a confusion with this property. Is this property work only when user will take Personal view using "Personalize
this page" option? I want this property to work in shared view (when "Personalize this page" option is not taken).
[Category("Extended Settings"), Personalizable(PersonalizationScope.User),
WebDescription("Please Enter a Sample Color")]
public string _SampleText
One way to achieve this would be to implement it by creating a custom table in some database which could contain columns like webpartid, siteid, userid, propertyname, propertyvalue. In the setter section of your property, save the value in a table along
with the current user id and in the getter section, read the corresponding value back for the current user id.
Please "Mark as Answer" if a post has answered your question or "Vote as Helpful" if it was helpful in some way. Here's
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.