开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜