Hi,
I'm trying to add a custom property to my webpart as below:
[Personalizable(PersonalizationScope.Shared)]
[WebBrowsable(true)]
[System.ComponentModel.Category("Settings")]
[WebDisplayName("RSS List Path")]
[WebDescription("")]
public string RSSListURL
{
get
{
if (_myListURL == null)
{
_myListURL = "http://server2003dev/dev/";
}
return _myListURL;
}
set { _myListURL = value; }
}
But within the webpart I am also overriding the GetToolParts() method as below with my own custom toolpart:
public override ToolPart[] GetToolParts() {
return new ToolPart[] { new RSSCountrySettings(), new WebPartToolPart() };
}
I need to display my custom toolpart (RSSCountrySettings) and my custom propery (RSS List Path) under the catergory Settings.
Any ideas how I do this, I able to only get one but not both to display...?