I have a web part with a WebDescription attribute that contains a description of the web part. E.g.
[
Category("Configuration"),
Personalizable(PersonalizationScope.Shared),
WebBrowsable,
WebDescription("Setting this option will make sorting, paging, filtering and refresh operations asynchronous"),
WebDisplayName("Enable Asychronous Update")
]
public bool EnableAsyncUpdate
{
get
{
return _enableAsyncUpdate;
}
set
{
_enableAsyncUpdate = value;
}
}
I want to dynamically change the WebDescription value by pulling a string from a resource file. E.g.
WebDescription(resourceManager.GetString("WebDescription"),
but the WebDescription attribute only accepts constants. Is there another way to dynamically populate the WebDescription attribute of a WebPart?