Migrate Content in SharePoint 2010

In this tutorial I will describe  how to migrate  content between SharePoint site collections and even entire farms. Very often you need to clone, copy or just create testing environment out of your production sites so the good migration procedures are essential to every SharePoint administrator. The best tool for content migration is the export / import functionality.
For [...]

Read more

Business Connectivity Services (BCS) in SharePoint 2010

Business Connectivity Services (BCS) are the   upgraded version of Business Data Catalog  from SharePoint Server 2007. BCS allow you to connect your SharePoint based content with external data (often called LOB Data – Line Of Business Data). With this powerful functionality you can read the data from external sources and  edit them directly from SharePoint sites or web [...]

Read more

Using SharePoint Offline with SharePoint Workspace – Part 2

In Using SharePoint Offline Part I we looked at the SharePoint Workspace  configuration tool, the installation and  the available settings  to be configured. Now   actually use the offline features of SharePoint 2010 with SharePoint Workspace 2010.
There are two ways to synchronize SharePoint content with your local offline store -
Synchronizing  SharePoint Site content using the SharePoint [...]

Read more

SharePoint Search Using KeywordQuery

To build custom search applications on top of SharePoint you should use the new  Microsoft.Office.Server.Search.Query object model. From code, you can use either the FullTextSQLQuery or the KeyWordQuery class. The common properties and methods for these classes are defined in the base Query class, note however that this class [...]

Read more

Working with SharePoint from External ASP.NET Web Apps.

SharePoint is essential an extention of ASP.NET and so with a just a little development work a SharePoint site can be extended in almost any way such as building custom Web Parts or accessing SharePoint from other ASP.NET web applications.
Before extending SharePoint we will first need a solid understanding of the Microsoft.SharePoint namespace. There are [...]

Read more

Creating Page Layouts in SharePoint

SharePoint ships with several page layouts which authors can use to create different designs of welcome and detail pages, however you are not limited to using only the page layouts provided by SharePoint. You can create your own custom layouts or edit existing layouts. When deciding on how to approach a page layout customization, [...]

Read more

Diagnostic Logging in SharePoint

SharePoint includes diagnostic logging and event reporting that can used to troubleshoot errors may be encountered in SharePoint. The below steps will enable SharePoint diagnostic logging:

Navigate to the Operations page on the Central Administration site.
Select Diagnostic Logging in the Logging and Reporting section and the Diagnostic Logging page will appear.
On the [...]

Read more

Working with Master Pages in SharePoint

Master pages are reusable page templates which use a combination of ASP.NET controls and HTML markup. Once a user creates a new Publishing page, that page’s look and feel derives from a master page; the content to be displayed the content’s layout comes from the page layout; and the content itself comes [...]

Read more

Monitoring Site Usage in SharePoint

A frequent issue with SharePoint is that admins have little  idea how it is being used. SharePoint does however provide several tools for monitoring  usage and capturing and reporting  errors.  Both WSS and MOSS provide comprehensive site usage  reports which are available at all the levels of the server farm from the SSP to each individual [...]

Read more

Using SharePoint Offline with SharePoint Workspace

What is SharePoint Workspace 2010?
SharePoint Workspace 2010 is a tool that simply takes your SharePoint sites offline. With only few mouse clicks you can synchronize all your online SharePoint libraries and documents, and store them locally on your compute and you are no longer tied to the company network. After offline work, when you go [...]

Read more

How To – 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())
{
[...]

Read more

How To – 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 [...]

Read more

How To – 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 current user but [...]

Read more

How To – 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 Permissions:

This [...]

Read more

How To – 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 lists [...]

Read more