Hide Repeater columns based on user privileges

前端 未结 3 1703

Can somebody explain to me how to hide a repeater column based on the user privileges.

Say I have:



        
3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-19 10:55

    You can render the elements conditionally. This simplified example presumes you have a Page-level property that indicates whether or not the user is logged on (you'll want to do the same thing in the header template):

    
                <% if (this.UserIsLoggedOn) { %>
                
                <% } %>
            
        
    
    

提交回复
热议问题