Thông tin tài liệu
MANNING
Wictor Wilén
IN ACTION
www.it-ebooks.info
SharePoint 2010 Web Parts in Action
www.it-ebooks.info
www.it-ebooks.info
SharePoint 2010
Web Parts in Action
WICTOR WILÉN
MANNING
Greenwich
(74° w. long.)
www.it-ebooks.info
For online information and ordering of this and other Manning books, please visit
www.manning.com. The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
180 Broad Street, Suite 1323
Stamford, CT 06901
Email: orders@manning.com
©2011 by Manning Publications Co. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
any form or by means electronic, mechanical, photocopying, or otherwise, without prior written
permission of the publisher.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books are
printed on paper that is at least 15 percent recycled and processed without the use of elemental
chlorine.
Manning Publications Co. Development editor: Susan Harkins
180 Broad Street, Suite 1323 Copyeditor: Liz Welch
Stamford, CT 06901 Typesetter: Gordan Salinovic
Cover designer: Marija Tudor
ISBN 9781935182771
Printed in the United States of America
12345678910 –MAL –161514131211
Download from Wow! eBook <www.wowebook.com>
www.it-ebooks.info
To my amazing wife and our two beautiful daughters
Download from Wow! eBook <www.wowebook.com>
www.it-ebooks.info
Download from Wow! eBook <www.wowebook.com>
www.it-ebooks.info
vii
brief contents
PART 1 INTRODUCING SHAREPOINT 2010 WEB PARTS . 1
1 ■ Introducing SharePoint 2010 Web Parts 3
2 ■ Using and configuring Web Parts in SharePoint 2010 24
PART 2 DEVELOPING SHAREPOINT 2010 WEB PARTS 53
3 ■ Building Web Parts with Visual Studio 2010 55
4 ■ Building the user interface 79
5 ■ Making Web Parts customizable 110
6 ■ Web Part resources and localization 148
7 ■ Packaging, deployment, and security 171
8 ■ Tools for troubleshooting and logging 201
9 ■ Programming and caching for performance 221
10 ■ Dynamic interfaces in Web Parts 242
11 ■ The Client Object Model and Silverlight Web Parts 274
12 ■ Making Web Parts mobile 291
13 ■ Design patterns and testability 309
Download from Wow! eBook <www.wowebook.com>
www.it-ebooks.info
BRIEF CONTENTS
viii
PART 3 DASHBOARDS AND CONNECTIONS 333
14 ■ Connecting Web Parts 335
15 ■ Building pages and dashboards 359
Download from Wow! eBook <www.wowebook.com>
www.it-ebooks.info
ix
contents
preface xvii
acknowledgments xviii
about this book xx
about the cover illustration xxiii
about Web Parts xxiv
PART 1 INTRODUCING SHAREPOINT 2010 WEB PARTS 1
1
Introducing SharePoint 2010 Web Parts 3
1.1 What is a Web Part? 5
1.2 Why use Web Parts? 7
1.3 Introducing the Web Part infrastructure 9
Web Part page 9
■
Web Part Manager 10
■
Web Part
zones 10
■
Web Part elements 12
■
Web Part Gallery 12
1.4 Types of Web Parts 12
ASP.NET 2 Web Parts 13
■
SharePoint Web Parts 14
Changes in the Web Part infrastructure for SharePoint 2010 15
1.5 Hello World example 16
1.6 SharePoint 2010 pages 17
Application pages 18
■
Site Pages 18
■
Master pages 22
1.7 Summary 22
Download from Wow! eBook <www.wowebook.com>
www.it-ebooks.info
[...]... Out-of-the-box Web Parts 31 SharePoint Foundation 2010 2.4 31 ■ SharePoint Server 2010 33 Working with Web Parts and pages 38 Creating a page using the web interface 38 Adding Web Parts using the web interface 39 Filtering a Web Part using Web Part connections 41 ■ ■ 2.5 Customizing and personalizing pages Shared view 43 Personal view 43 Parts 44 Maintenance view 44 ■ ■ 42 Closing and deleting Web ■ 2.6 SharePoint. .. Designer 2010 45 Adding Web Parts to a page 46 Adding a Web Part using SharePoint Designer 2010 47 Configuring Web Parts using SharePoint Designer 2010 47 Adding pages 48 Editing pages and adding zones 48 Import and export of solutions using SharePoint Designer 49 ■ ■ ■ ■ ■ 2.7 Exporting and importing Web Parts 49 Exporting a Web Part 50 Importing a Web Part 50 Prohibiting the export of a Web Part... CONTENTS 2 Using and configuring Web Parts in SharePoint 2010 24 2.1 The SharePoint 2010 user interface 25 The new SharePoint user interface and the Ribbon interface improvements 26 2.2 The Web Part Gallery 25 Other ■ 27 What is the Web Part Gallery? 28 Uploading or adding new Web Parts to the gallery 29 Editing Web Parts in the gallery 29 Grouping the Web Parts 30 Permissions on Web Parts in the gallery... Introducing SharePoint 2010 Web Parts This chapter covers ■ Defining a Web Part ■ Using Web Parts ■ Knowing the difference between ASP NET and SharePoint Web Parts Web Parts are an essential part of Microsoft SharePoint 2010 and one of the first technologies that a new SharePoint developer starts using You can describe a Web Part as a self-contained application that’s used in a SharePoint. .. term SharePoint when talking about SharePoint in general, with no specific version or SKU (Stock Keeping Unit) in mind www.it-ebooks.info Download from Wow! eBook Part 1 Introducing SharePoint 2010 Web Parts P art 1 introduces you to the world of SharePoint 2010 Web Parts You’ll learn what Web Parts are and how you can use them to build solutions using only the web browser and SharePoint. .. of Web Parts 1.1 What is a Web Part? Before we dig down deep into developing Web Parts for SharePoint 2010, you should know what a Web Part is As the name implies, it means parts of a web Web Parts are the building blocks for building web pages in SharePoint Web Parts are essentially ASP.NET web controls that inherit the web control base class in ASP.NET but have special abilities compared with ordinary... www.manning.com/wilen or www.sharepointwebpartsinaction.com www.it-ebooks.info Download from Wow! eBook Why use Web Parts? 1.2 7 Why use Web Parts? Web Parts are just one but important component of the huge SharePoint product— without Web Parts, you couldn’t enjoy the platform’s flexibility It’s the Web Parts that make SharePoint as well as other Web Part–based portals interesting for... 2 DEVELOPING SHAREPOINT 2010 WEB PARTS 53 3 Building Web Parts with Visual Studio 2010 3.1 3.2 3.3 55 Requirements for your development environment 56 Developing for SharePoint 2010 in Visual Studio 2010 57 Building your first Visual Web Part 59 The Visual Web Part template 60 The SharePoint Customization wizard 61 Explore the SharePoint Project Items 62 Adding functionality to your Visual Web Part... even allow Web Parts from less trusted sources to run in your SharePoint environment in a special protected process The sandboxing feature in SharePoint 2010 will be discussed in more detail further in this book 1.3 Introducing the Web Part infrastructure Before we go further, let’s explore some basic facts about site pages and Web Parts in SharePoint If you’ve been working with SharePoint or ASP.NET,... Object Model and Web Parts 276 11.2 Silverlight Web Parts ■ Working 279 SharePoint Silverlight Web Part 279 Building a Silverlight SharePoint application 280 Input parameters to the Silverlight Web Part 283 Packaging the Silverlight Web Part 284 Preconfiguring the Silverlight Web Part 286 Custom Silverlight Web Part 287 Enabling custom Silverlight Web Part interaction with SharePoint 289 ■ ■ ■ ■ ■ . 2010 WEB PARTS . 1
1 ■ Introducing SharePoint 2010 Web Parts 3
2 ■ Using and configuring Web Parts in SharePoint 2010 24
PART 2 DEVELOPING SHAREPOINT 2010. MANNING
Wictor Wilén
IN ACTION
www.it-ebooks.info
SharePoint 2010 Web Parts in Action
www.it-ebooks.info
www.it-ebooks.info
SharePoint 2010
Web Parts in Action
WICTOR
Ngày đăng: 17/02/2014, 23:20
Xem thêm: Tài liệu SharePoint 2010 Web Parts in Action ppt, Tài liệu SharePoint 2010 Web Parts in Action ppt