I have developed a web part that should draw a graph, I want to store
some information in web part properites, so I wrote the following
property
[Browsable(true),
Category("Miscellaneous"),
DefaultValue(""),
Description("Ticker to draw"),
FriendlyName("Ticker"),
XmlElement(ElementName="Ticker"),
WebPartStorageAttribute(Storage.Personal)]
public string Ticker
{
get
{
return ticker;
}
set
{
ticker = value;
}
}
everything is ok, but I when change the property in the code, it
isn't saved, so I called the "this.SaveProperties = true; "
but I got the following exception
Microsoft.SharePoint.WebPartPages.WebPartPageUserException: Access
Denied saving Web Part properties: either the Web Part is embedded
directly in the page, or you do not have sufficient rights to save
properties (Web Part 'Volume and Price Graph'). at
Microsoft.SharePoint.WebPartPages.WebPart.a() at
Microsoft.SharePoint.WebPartPages.WebPart.set_SaveProperties(Boolean
value) at X_Treme.ValuAction.WebParts.VolumePriceGraph.RenderWebPart
(HtmlTextWriter output) in c:\inetpub\wwwroot\x-treme.valuaction\x-
treme.valuaction.webparts\graphs\volumepricegraph.cs:line 290