MyTasks Web Part

The MyTasks Web Part will utilize the SiteData approach to pull together a listing of all the user's tasks by executing the GetSiteData() method from a specified list of sites.

Creating the Web Part

The MyTasks Web Part will be added to the SPBlueprints.MyTasks project.

To create the solution and Web Part:

  1. Open the SPBlueprints.MyTasks project in Visual Studio 2010.
  2. Browse the Installed Templates and select Visual C# | SharePoint 2010.
  3. Right click on the project file and select Add | New Item.
  4. From the template selection screen select the Web Part option.
  5. Provide the Name as MyTasks and click on the Add button as shown in the following screenshot:
  6. Edit the MyTasks.webpart file and add in the custom properties shown as follows:
    <property ...

Get Microsoft SharePoint 2010 Business Application Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.