开发者

How to save Webpart property with Contribute permission

开发者 https://www.devze.com 2023-02-03 23:15 出处:网络
This is my code public string siteURL = string.Empty; [Personalizable(PersonalizationScope.Shared), //ReadOnly(true),

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号