Hide Repeater columns based on user privileges

前端 未结 3 1707

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

Say I have:



        
3条回答
  •  臣服心动
    2021-01-19 11:01

    You can use the loginview control which can display controls based on role (including anonymous vs authenticated). You can find a guide here: http://weblogs.asp.net/sukumarraju/archive/2010/07/28/role-based-authorization-using-loginview-control.aspx

    So something like:

    
          
            Name
            
              
                Secret Info
              
            
          
      
      
          
            
            
              
                
              
            
          
      
      
          
            
            
              
                
              
            
          
      
      
        
      
    
    

提交回复
热议问题