Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have custom webpart properties for a visual webpart. This thread helped me develop the custom webpart properties.

Now my issue is once a user sets the custom property it gets applied for all users, i want to limit it to user preference hence it should be different for every login.

How to set webpart property different for every login. Kindly help.

share|improve this question

1 Answer 1

Try setting PersonalizationScope.User on the property

[Personalizable(PersonalizationScope.User),
WebBrowsable(true),
WebDisplayName("MyProperty")]
public string MyProperty { get; set; }
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.