How to save Webpart property with Contribute permission
This is my code
public string siteURL = string.Empty;
[Personalizable(PersonalizationScope.Shared),
//ReadOnly(true),
WebBrowsable(false),
WebDisplayName("Columns Filter"),
WebDescription("Columns Filter Property"),
Category("Miscellaneous")]
public string SiteURL
{
get
{
return siteURL;
}
set
{
siteURL = value;
}
}
but Webpart prop开发者_运维百科erty cannot save with Contribute permission. Please help me to save property whit Contribute permission.
Thanks Nguyen
By Default Contributors will not have access. Go to webpart galleries and then Change the permissions for this webpart.
精彩评论