Add a List Item Programmatically in SharePoint

The below code demonstrates how to use the SharePoint API to add a list items programmatically: string dashListRootStr= “http://sharepointSite/SubSite/Lists/MyList/”; using(SPSite site = new SPSite(dashListRootStr)) { using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists[“MySPList”]; SPListItem Item = list.Items.Add(); item[“Title”] = txtCompanyName.Text; item[“DateReceived”] = System.DateTime.Now; item[“Description”] = txtDescription.Text; //Important: Comma and space required to add […]

Read more

Delete a List Item Programmatically in SharePoint

The below code demonstrates how to use the SharePoint API to delete a list items programmatically: Delete an an tem without placing the item in the recycle bin: using (SPWeb web = siteCollection.AllWebs[“thewebname”]) { SPList list = web.Lists[“Document Library”]; SPListItem item = list.Items[guid]; item.Delete(); } Delete an an tem and place the item in the […]

Read more

Create a Group for a SharePoint Site

To create a new SharePoint group, navigate to the People and Groups page (Site Actions >  People and Groups) , click the New dropdown and select New Group: This opens the New Group page with several options. Name and About Me – simply enter the Name and Description Owner – This setting defaults to the […]

Read more

Change User or Groups Permissions in SharePoint

To change the permissions of a user or group in a SharePoint site, first navigate  to the site’s main Permissions page (Site Actions >  Site Settings > Advanced Permissions) : To change the permission levels for the users or groups, check the box next the user/group and click the Actions dropdown and select Edir User […]

Read more

Add User Permissions Directly in SharePoint

If you don’t want to add a user to a SharePoint group but want to give the user a specific set of permissions unrelated to a specific group then navigate to the site’s security page (Site Actions > Site Settings > People and Groups > All People (located on the left navigation bar). This page […]

Read more

Add or Remove Users in a SharePoint Group

To add or remove users from  a Group firstly navigate to the relevant group (Site Actions >  Site Settings > People and Groups > yourGroup ). Then in the group page, click the New dropdown and select Add Users: This opens the Add Users page (below) where you can either add users by entering them […]

Read more

SharePoint 2010 Service Applications Architecture (SSA)

If you have any experience in administering MOSS farms, you probably already know how isolated Shared Service Providers (SSPs) can be and how extremely difficult is to restore an SSP in case of disaster recovery. The good news is that for SharePoint 2010 SSPs are gone and we now we have more flexible services that […]

Read more

SharePoint 2010 Backup and Restore

SharePoint Server 2010 Backup and Restore SharePoint 2010 Backups are a major advance over the backup facilities in SharePoint 2007. SharePoint can now easily maintain full backups and even granular backups, where only selected data can be restored. For this article I will demonstrate how to use PowerShell to backup and restore SharePoint applications as […]

Read more

Getting Started with PowerShell for SharePoint

Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell™ helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows. Built-in Windows PowerShell commands, called cmdlets, let you manage the computers […]

Read more

Auto Refresh Web Parts in SharePoint 2010

Automatic page refreshes were a big pain point in SharePoint 2007. If you had a  page or list that you wished  to   refresh at regular intervals, so it the event that another user entered   items, the screen would update, there was no easy/direct way of doing this. You could of could add <meta http-equi=”refersh” content […]

Read more