Book Image

Microsoft SharePoint 2010 Business Application Blueprints

Book Image

Microsoft SharePoint 2010 Business Application Blueprints

Overview of this book

SharePoint is an incredibly powerful platform that can support a wide variety of business scenarios. In many cases it needs to be configured or extended in order to deliver fully featured business solutions. While some books merely talk about the capabilities of SharePoint in general and leave you to figure out how they apply to your situation, this book takes a different approach. Each chapter provides easy-to-understand, step-by-step instructions along with screenshots to help build exciting SharePoint business solutions that extend the platform. By the end of this book the reader will be a SharePoint developer to be reckoned with. This book will dive into a diverse set of real-world scenarios to deliver sample business solutions that can serve as the foundation for your own solutions. This book draws from the author's extensive experience with SharePoint to leverage the platforms underlying services to provide solutions that can support Social Collaboration, Content and Document Management, as well as project collaboration. Each chapter represents a new business solution that builds on the overall platform to deliver more complex solutions and more advanced techniques. By the end of the book the reader will understand how to leverage the SharePoint platform to build their own business solutions.
Table of Contents (15 chapters)
Microsoft SharePoint 2010 Business Application Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

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