I am trying to create a custom webpart in point to set and get a property per user on page. To change the background and save it per user.
I'm using code like this:
public static string SampleColor=blue;
[Category("Extended Settings"),
Personalizable(PersonalizationScope.Shared),
WebBrowsable(true),
WebDisplayName("Sample Color"),
WebDescription("Please Enter a Sample Color")]
public string _SampleText
{
get { return SampleText; }
set
{ SampleColor = value;
}
This is the property I need.. I will have 3 color buttons.
How can I use it on the page? How can I change it and have it be saved on the site?
