So here is my take on a Custom SharePoint 2010 Web Part Property:
private string _targetSite = "SomeSite";
[Personalizable(PersonalizationScope.Shared),
WebBrowsable(true),
WebDisplayName("Target Site"),
WebDescription("Specify a site."),
Category("Configuration")]
public string TargetSite
{
get { return _targetSite; }
set { _targetSite = value; }
}
Oh and make sure you have the permissions to change settings.
No comments:
Post a Comment