Showing posts with label sharepoint trim hide controls based on permission. Show all posts
Showing posts with label sharepoint trim hide controls based on permission. Show all posts

Thursday, May 13, 2010

Trim Hide controls based on permission

Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="AddAndCustomizePages" PermissionContext="CurrentSite"


Any HTML or controls between these tags will only show for users who have the 'AddAndCustomizePages' permission.


/SharePoint:SPSecurityTrimmedControl