Table Of ContentMicrosoft SharePoint
2010 Developer's
Compendium:
The Best of Packt for
Extending SharePoint
Build an engaging SharePoint site with Visual Studio,
Silverlight, PowerShell, and Windows Phone 7
Series Editor
Carl Jones
BIRMINGHAM - MUMBAI
Microsoft SharePoint 2010 Developer's
Compendium: The Best of Packt for
Extending SharePoint
Copyright © 2012 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system,
or transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author(s), nor Packt Publishing, and its
dealers and distributors will be held liable for any damages caused or alleged to be
caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: February 2012
Production Reference: 1150212
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-84968-680-8
www.packtpub.com
Cover Image by Tina Negus ([email protected])
Credits
Series Editor Technical Editor
Carl Jones Sonali Tharwani
Contributors Indexer
Gastón C. Hillar Hemangini Bari
Balaji Kithiganahalli
Production Coordinator
Mike Oryszak
Prachali Bhiwandkar
Yaroslav Pentsarskyy
Todd Spatafore
Cover Work
Prachali Bhiwandkar
About the Contributors
Gastón C. Hillar has been working with computers since he was eight. He began
programming with the legendary Texas TI-99/4A and Commodore 64 home computers
in the early 80s. He has a Bachelor's degree in Computer Science in which he graduated
with honors and he also has an MBA (Master in Business Administration) in which he
graduated with an outstanding thesis. He has worked as a Developer, an Architect, and
Project Manager for many companies in Buenos Aires, Argentina. Now, he is an independent
IT Consultant and a freelance author looking for new adventures around the world. He also
works with electronics (he is an Electronics Technician). He is always researching about new
technologies and writing about them. He owns an IT and electronics laboratory with many
servers, monitors, and measuring instruments. He has written two additional books for
Packt Publishing, C# 2008 and 2005 Threaded Programming: Beginner's Guide and 3D
Game Development with Microsoft Silverlight 3: Beginner's Guide. He contributes to Dr.
Dobb's Go Parallel programming portal http://www.ddj.com/go-parallel/ and he is
a guest blogger at Intel Software Network http://software.intel.com/. In 2009, he
was awarded an Intel® Black Belt Software Developer award. He is the author of more than
40 books in Spanish about computer science, modern hardware, programming, systems
development, software architecture, business applications, balanced scorecard applications,
IT project management, the Internet, and electronics. He lives with his wife, Vanesa and
his son, Kevin. When not tinkering with computers, he enjoys developing and playing with
wireless virtual reality devices and electronics toys with his father, his son, and his nephew,
Nico. You can reach him at [email protected]. You can follow him on Twitter at
http://twitter.com/gastonhillar. Gastón's blog is at http://csharpmulticore.
blogspot.com.
Balaji Kithiganahalli has been a computer nerd since 1995. He has a Master's degree
in Systems Engineering and is currently serving as CEO and partner for Integrate, LLC. His
company specializes in systems integration and custom software development. He has over
15 years of software development and architectural experience. He has consulted with several
government and multi-national clients. He is a technology agnostic who used to mainly work
on J2EE related technologies. Since 2003, he is mainly involved in implementing SharePoint
and .NET technologies. He is currently architecting SharePoint 2010 implementation for a very
large government organization in Atlanta, GA. When not working, he enjoys going for bike rides
with his kids and reading books about other technologies. He currently lives in Atlanta, GA
with his beautiful wife and two kids.
Mike Oryszak is a Consultant and Practice Manager with Intellinet, a Microsoft Gold-Certified
Partner located in the South Eastern US. Mike works with customers to design and implement
business solutions that leverage SharePoint as a platform. Mike is actively involved in the
SharePoint community as a leader to Triangle SharePoint User Group in Raleigh, NC as well as
a frequent speaker at SharePoint events and conferences. Mike has been recognized for his
community involvement as a three time Microsoft Valuable Professional (MVP) for SharePoint
Server. When not working, Mike can be found at home with his family or off hiking the many
trails in the mountains of western North Carolina. Mike can be reached at nextconnect@
live.com or through his blog at http://www.mikeoryszak.com.
Yaroslav Pentsarskyy has been involved in SharePoint solution architecture and
implementation since 2003. He is also a Microsoft MVP since 2009 and keeps a close
touch with SharePoint product team. Yaroslav frequently presents technical events worldwide
as well as online; you can always find a fresh bit of SharePoint information on his blog:
http://www.sharemuch.com. To learn everything Yaroslav knows about SharePoint,
check out his two new books Top 60 Custom Solutions built on SharePoint 2010 and
SharePoint 2010 branding in practice.
Todd Spatafore is a Professional Web Developer and Software Architect who enjoys
living life on the sharp edge of technology. Todd is an expert in HTML, CSS, JavaScript, ASP.
NET (WebForms and MVC), C#, and Silverlight. Todd is currently the Director of Technology
at Draftfcb. Before starting at Draftfcb, Todd was a Senior Software Architect for MRM
Worldwide. Todd was the Principal Software Architect for many of Microsoft's websites
including Windows Server 2008, Microsoft Offce 2007 Real Life Tools, and SQL Server
2008. In addition to these defining pages, Todd worked closely with internal teams at
Microsoft to introduce a new content management system for www.Microsoft.com,
the fourth most visited website on the Internet. These content management systems were
designed and built on top of SharePoint 2010. Prior to MRM, Todd was a Software Architect
building websites such as the California Teachers Association, Novellus, and Technology
Credit Union (TechCU). These sites utilized the Microsoft Content Management System,
which has since been integrated into SharePoint. Beyond traditional websites and campaign
landing sites, Todd has worked on unique applications such as a Windows Media Center
application for ClickStar, a Santa Monica startup designed to showcase independent films
from very well-known filmmakers. Todd maintains his own blog at http://www.spatacoli.
com/, on which he muses about current programming topics such as Silverlight, JavaScript,
HTML, CSS, and Hyper-V. Currently, Todd is working on a few independent Windows Phone 7
apps, and speaks at MSDN conferences on web application architecture, RIA development in
Silverlight, Windows Phone 7, and SharePoint. Follow Todd on Twitter at http://twitter.
com/Spatacoli. Todd graduated from Montana State University with a BS in Physics.
www.PacktPub.com
Support files, eBooks, discount offers and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files
available? You can upgrade to the eBook version at www.PacktPub.com and as a print book
customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@
packtpub.com for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a
range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library.
Here, you can access, read and search across Packt's entire library of books.
Why Subscribe?
f Fully searchable across every book published by Packt
f Copy and paste, print and bookmark content
f On demand and accessible via web browser
Free Access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib
today and view nine entirely free books. Simply use your login credentials for immediate access.
Instant Updates on New Packt Books
Get notified! Find out when new books are published by following @PacktEnterprise on Twitter,
or the Packt Enterprise Facebook page.
Table of Contents
Preface 1
Chapter 1: Understanding SharePoint Development Choices 7
Server-side development 8
Farm solutions 8
Sandboxed solutions 10
Connecting to SharePoint through web services 11
Client-side development 12
Client Object Model 12
Using jQuery 14
Deploying and managing client-side customizations 14
SharePoint development tools 15
Visual Studio 15
SharePoint Designer 16
InfoPath Designer 17
Choosing a development path 17
Environment considerations 18
Cloud Environments 18
Governance, change management policies, and server access 18
Solution reuse 18
Scalability of solutions 19
Application lifecycle management 20
Summary 20
Chapter 2: Building an Engaging Community Site 21
Creating the community site 24
Activating supporting features 24
Site collection features 24
Site features 25
Create and configure the Community Landing Page 25