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

The Social Data Statistics Web Part displays social data statistics. This sample is 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.

Building and Running the Sample


The following steps demonstrate how you can test this project on your development or test site.

To build the sample


  1. Create a folder named Microsoft.SDK.Server.Samples and unzip the SocialDataStatistics.zip file in it.
  2. Start Visual Studio 2010, and then open the SocialDataStatistics.sln file that is in the folder that you created in step 1.
  3. In the Properties window, specify the site URL value of the absolute address of your development or test site (for example, http://mysite/. Ensure that you include the closing forward slash. Also make this URL the value of the socialDataStatsSite string in the VisualWebPart1UserControl.ascx.cs file.
  4. If they are not already present, 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. On the Build menu, select Deploy Solution. After the build is complete, the Web Part is installed on your development or test site.

To run the sample


  1. Add the newly installed Web Part to any page on your site. From the Custom category, select the VisualWebPartProject1 Web Part.
  2. If your page generates an error indicating that it cannot find the control for this Web Part, navigate to \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES, and then rename SocialDataStatisticsWebPart to be VisualWebPartProject1.



Last edited Apr 21 2010 at 10:10 PM  by jamescro, version 9
Updating...
Page view tracker