Search Wiki:
Resource Page Description
A Web part that displays social data statistics.

This sample consists of a Microsoft Visual Studio 2010 SharePoint Visual Web part project. After you build and deploy this project on your Microsoft SharePoint Server 2010 site, you can add this Web part to any page where you want to display statistics for the social tagging activities of your users. The Web part displays the following information in three tables:

  1. Each URL that has been tagged, and the terms with which each URL has been tagged.
  2. Each term that has been used in a social tag, and the number of times that term has been used.
  3. Each user who has added a social tag, and the number of times that user has tagged URLs.

The sample demonstrates how to use the new Social Data object model in SharePoint Server 2010. It also takes advantage of the SharePoint Visual Web Part template, one of the new SharePoint templates that you can use in Visual Studio 2010.

You can test this project on your development or test site by taking the following steps:

  1. Create a folder named Microsoft.SDK.Server.Samples and unzip the SocialDataStatistics.zip file in it.
  2. Launch Visual Studio 2010 and open the SocialDataStatistics.sln file that is in the folder that you have created in the step above.
  3. Change the site URL value to the absolute address of your development or test site (for example, "http:///MyDevServer/". Be sure to include the closing forward slash. Also make this URL the value of the socialDataStatsSite string in VisualWebPart1UserControl.ascx.cs.
  4. Add references to the following assemblies to the project:
    1. Microsoft.SharePoint.dll
    2. Microsoft.SharePoint.Taxonomy.dll
    3. Microsoft.Office.Server.dll
    4. Microsoft.Office.Server.UserProfiles.dll
  5. Press F5. This will build your project and start the debugging process. Once the build has completed, the Web Part will be installed on your development or test site.
  6. Add the newly installed Web part to any page on your site.
  7. After you have added the Web part to a page on your site, return to Visual Studio and press Shift+F5 to stop debugging.


Last edited Oct 14 2009 at 8:47 PM  by jamescro, version 8
Updating...
Page view tracker