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 name="Title" type="string">MyTasks</property> <property name="Description" type="string">Task Rollup Web Part</property> <property name="DisplayMode" type="string">List</property>
7. The following...