0

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.

1 Answer 1

0

Try setting PersonalizationScope.User on the property

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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