Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft SharePoint 2010 Business Application Blueprints

You're reading from   Microsoft SharePoint 2010 Business Application Blueprints Master SharePoint application development by building exciting SharePoint business solutions with this book and ebook.

Arrow left icon
Product type Paperback
Published in Jun 2012
Publisher Packt
ISBN-13 9781849683609
Length 282 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (15) Chapters Close

Microsoft SharePoint 2010 Business Application Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Building an Effective Intranet 2. Building an Out of Office Delegation Solution FREE CHAPTER 3. Building an Enterprise Content Management Solution 4. Building an Engaging Community Site 5. Building a Site Request and Provisioning System 6. Building a Project Site Template 7. Building a Project Management Main Site 8. Building a Task Rollup Solution 9. Building a Site Directory with SharePoint Search

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. 1. Open the SPBlueprints.MyTasks project in Visual Studio 2010.

  2. 2. Browse the Installed Templates and select Visual C# | SharePoint 2010.

  3. 3. Right click on the project file and select Add | New Item.

  4. 4. From the template selection screen select the Web Part option.

  5. 5. Provide the Name as MyTasks and click on the Add button as shown in the following screenshot:

  6. 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. 7. The following...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image