SharePoint web part store with multiple web part instances on one page
I have a custom web part that I created and am trying to host three instances on the same page. I noticed that when I have one instance per page, the custom properties persist and work as expected. When I add two more instances of the same custom web part to the page, the following web parts do not retain their custom property values. I suppose I must be doing something wrong when it comes to the WebPartStorage attribute. Any thoughts?
[Browsable(true), Category("Miscellaneous"),
WebPartStorage(Storage.Personal),
FriendlyName("List"), Description("List")]
public String List { get; set; }
+2
source to share