O'Reilly logo

Microsoft SharePoint 2010 Business Application Blueprints by Mike Oryszak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required