Hide Ribbons to the anonymous users in SharePoint based on the PermissionsString ......<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="AddListItems" AuthenticationRestrictions="AuthenticatedUsersOnly"> ...
Showing posts with label permission. Show all posts
Showing posts with label permission. Show all posts
Friday, February 12, 2016
Wednesday, December 9, 2015
09
Dec
Programmatically Create TopLink Bar in SharePoint site collection:
SPNavigationNodeCollection topnav = oweb.Navigation.TopNavigationBar;
SPNavigationNode node = new SPNavigationNode("Title", "URL");
node = topnav.AddAsLast(node);
node.Update();
Similarly, To create Quicklaunch bar
SPNavigationNodeCollection topnav...
Thursday, April 30, 2015
30
Apr
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
#testname
$list = (Get-SPWeb "http://spserver/2015/").Lists["testname"]
$list.BreakRoleInheritance($true,$true)
$list.Update...