I have a web part custome setting, defined as below. It works fine but it seem to lose its value once a day!? Is this because the app pool is getting recycled or some such?
Is there anyway to prevent this?
[WebBrowsable(true),
Personalizable(true),
WebDisplayName("Site Root"),
WebDescription("The site root url, so the the webpart can find the SP webservices"),
Category("Custom Settings"),
WebPartStorage(Storage.Shared),
DefaultValue("http://url/")]
public string SiteRoot
{
get { return _siteroot; }
set
{
_siteroot = value;
}
}
