Re: Edit comments??

  •  09-03-2010, 5:27 AM

    Re: Edit comments??

    Thanks Eric

    I had to change the code to this tough:
     
    <script runat="server">
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        
        GalleryBrowser1.Layout="Classic";
        GalleryBrowser1.Culture = "no";
        
        if(Context.User.Identity.Name=="admin")
        {
            GalleryBrowser1.AllowEdit=true;
            GalleryBrowser1.AllowPostComment=true;
            GalleryBrowser1.AllowShowComment=true;        
        }
        
    }
    </script>
    Else the language would only be when "admin" is logged in . But thanks again.

    Great product i am going to buy the developer license soon.
View Complete Thread