1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu SharePoint 2010 Web Parts in Action ppt

449 1.1K 4

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • SharePoint 2010 WebParts

  • brief contents

  • contents

  • preface

  • acknowledgments

  • about this book

    • How this book is organized

    • Who should read this book

    • How to use this book

    • Code conventions and downloads

    • Software requirements

    • Author Online

    • About the author

  • about the cover illustration

  • about Web Parts

    • Fun Facts

  • Introducing SharePoint 2010 Web Parts

    • Introducing SharePoint 2010 Web Parts

      • 1.1 What is a Web Part?

      • 1.2 Why use Web Parts?

      • 1.3 Introducing the Web Part infrastructure

        • 1.3.1 Web Part page

        • 1.3.2 Web Part Manager

        • 1.3.3 Web Part zones

        • 1.3.4 Web Part elements

        • 1.3.5 Web Part Gallery

      • 1.4 Types of Web Parts

        • 1.4.1 ASP.NET 2 Web Parts

        • 1.4.2 SharePoint Web Parts

        • 1.4.3 Changes in the Web Part infrastructure for SharePoint 2010

      • 1.5 Hello World example

      • 1.6 SharePoint 2010 pages

        • 1.6.1 Application pages

        • 1.6.2 Site Pages

        • 1.6.3 Master pages

      • 1.7 Summary

    • Using and configuring Web Parts in SharePoint 2010

      • 2.1 The SharePoint 2010 user interface

        • 2.1.1 The new SharePoint user interface and the Ribbon

        • 2.1.2 Other interface improvements

      • 2.2 The Web Part Gallery

        • 2.2.1 What is the Web Part Gallery?

        • 2.2.2 Uploading or adding new Web Parts to the gallery

        • 2.2.3 Editing Web Parts in the gallery

        • 2.2.4 Grouping the Web Parts

        • 2.2.5 Permissions on Web Parts in the gallery

      • 2.3 Out-of-the-box Web Parts

        • 2.3.1 SharePoint Foundation 2010

        • 2.3.2 SharePoint Server 2010

      • 2.4 Working with Web Parts and pages

        • 2.4.1 Creating a page using the web interface

        • 2.4.2 Adding Web Parts using the web interface

        • 2.4.3 Filtering a Web Part using Web Part connections

      • 2.5 Customizing and personalizing pages

        • 2.5.1 Shared view

        • 2.5.2 Personal view

        • 2.5.3 Closing and deleting Web Parts

        • 2.5.4 Maintenance view

      • 2.6 SharePoint Designer 2010

        • 2.6.1 Adding Web Parts to a page

        • 2.6.2 Adding a Web Part using SharePoint Designer 2010

        • 2.6.3 Configuring Web Parts using SharePoint Designer 2010

        • 2.6.4 Adding pages

        • 2.6.5 Editing pages and adding zones

        • 2.6.6 Import and export of solutions using SharePoint Designer

      • 2.7 Exporting and importing Web Parts

        • 2.7.1 Exporting a Web Part

        • 2.7.2 Importing a Web Part

        • 2.7.3 Prohibiting the export of a Web Part

      • 2.8 Summary

  • Developing SharePoint 2010 Web Parts

    • Building Web Parts with Visual Studio 2010

      • 3.1 Requirements for your development environment

      • 3.2 Developing for SharePoint 2010 in Visual Studio 2010

      • 3.3 Building your first Visual Web Part

        • 3.3.1 The Visual Web Part template

        • 3.3.2 The SharePoint Customization wizard

        • 3.3.3 Explore the SharePoint Project Items

        • 3.3.4 Adding functionality to your Visual Web Part

        • 3.3.5 Build and deploy the Visual Web Part

        • 3.3.6 Take your Web Part for a test drive

      • 3.4 Traditional Web Part projects

        • 3.4.1 Create an empty SharePoint project

        • 3.4.2 Adding the Web Part to the project

        • 3.4.3 Adding controls to the Web Part

        • 3.4.4 Adding the button-click event manually

        • 3.4.5 Testing and debugging your Web Part

      • 3.5 Upgrading SharePoint 2007 projects

        • 3.5.1 Upgrading from Visual Studio Extension for WSS 1.3

        • 3.5.2 Upgrading from other project types

      • 3.6 SharePoint Project settings in Visual Studio

      • 3.7 SharePoint Server Explorer in Visual Studio

      • 3.8 Extensibility in Visual Studio 2010

      • 3.9 Summary

    • Building the user interface

      • 4.1 ASP.NET and Web Parts

        • 4.1.1 Adding controls to the Web Part

        • 4.1.2 The event flow for a Web Part

        • 4.1.3 Working with view state

        • 4.1.4 Using validators

        • 4.1.5 Custom controls and user controls

      • 4.2 SharePoint controls

        • 4.2.1 Default SharePoint controls in Visual Studio

        • 4.2.2 Standard SharePoint controls

      • 4.3 Look and feel of Web Parts

        • 4.3.1 CSS in SharePoint

        • 4.3.2 Custom style sheets

        • 4.3.3 SharePoint themes

        • 4.3.4 Web compliancy

        • 4.3.5 Web Part icons

      • 4.4 Web Part verbs

        • 4.4.1 Adding verbs to a Web Part

        • 4.4.2 Event flow when using Web Part verbs

      • 4.5 Summary

    • Making Web Parts customizable

      • 5.1 Web Part properties

        • 5.1.1 Adding a property

        • 5.1.2 Customizing the property

        • 5.1.3 Custom categories

        • 5.1.4 Default values on properties

        • 5.1.5 Properties used in the Web Part class and defined in SharePoint

        • 5.1.6 Properties in Visual Web Parts

        • 5.1.7 Personalization

        • 5.1.8 Storing URLs in Web Part properties

        • 5.1.9 Static Web Parts

        • 5.1.10 Web Part previews

        • 5.1.11 Error handling in Web Part properties

      • 5.2 Common Web Part properties

        • 5.2.1 Appearance properties

        • 5.2.2 Layout properties

        • 5.2.3 Advanced properties

      • 5.3 Custom Editor Parts

        • 5.3.1 Create a custom Editor Part

        • 5.3.2 Add the custom Editor Part to the Web Part

        • 5.3.3 Validating properties

        • 5.3.4 Property dependencies

        • 5.3.5 Visual appearance of the Editor Part interface

      • 5.4 Advanced properties

        • 5.4.1 Define the property

        • 5.4.2 Problems with complex types

        • 5.4.3 Create a type converter

      • 5.5 Runtime filters

        • 5.5.1 The AuthorizationFilter property

        • 5.5.2 Create a runtime filter

        • 5.5.3 Create the user filter control

        • 5.5.4 Register the runtime filter

        • 5.5.5 Use the filter

        • 5.5.6 Overriding the default Target Audiences filter

      • 5.6 Summary

    • Web Part resources and localization

      • 6.1 Linking and embedding resources

        • 6.1.1 Using the SharePoint root folders

        • 6.1.2 Using class resources

        • 6.1.3 Embedded resources

        • 6.1.4 Resources in SharePoint libraries

        • 6.1.5 URL Expression Builder in SharePoint 2010 Server

      • 6.2 Localization resources in Web Parts

        • 6.2.1 Localization methods

        • 6.2.2 Localizing code

        • 6.2.3 Localizing Visual Web Part user controls

        • 6.2.4 Localizing the Feature

        • 6.2.5 Localizing the Web Parts control description file

        • 6.2.6 Localizing Web Part properties

        • 6.2.7 Localizing using satellite assemblies

        • 6.2.8 Localizing style sheets, scripts, and images

        • 6.2.9 Other localization considerations

      • 6.3 Summary

    • Packaging, deployment, and security

      • 7.1 Solution packages

        • 7.1.1 Windows SharePoint package files

        • 7.1.2 SharePoint Features

        • 7.1.3 Safe controls and the RequiresDesignerPermission attribute

      • 7.2 Deployment and activation

        • 7.2.1 Solution deployment using PowerShell

        • 7.2.2 Feature activation and deactivation

      • 7.3 Sandboxed solutions

        • 7.3.1 What is sandboxing?

        • 7.3.2 Configuring the sandbox

        • 7.3.3 Deploying and installing sandboxed solutions

        • 7.3.4 Full-trust proxies

      • 7.4 Web application targeted solutions

        • 7.4.1 Building solutions for web application deployment

        • 7.4.2 Code Access Security policies

        • 7.4.3 Custom CAS policies

      • 7.5 Upgrading solutions

        • 7.5.1 How to upgrade

        • 7.5.2 Upgrading Features

        • 7.5.3 Assembly redirection

        • 7.5.4 Upgrading Web Parts

      • 7.6 Summary

    • Tools for troubleshooting and logging

      • 8.1 Logging and error handling in SharePoint 2010

        • 8.1.1 Introducing the correlation id

        • 8.1.2 SharePoint trace logs

        • 8.1.3 Searching the trace logs

        • 8.1.4 Custom logging to trace logs

        • 8.1.5 Error handling in sandboxed solutions

      • 8.2 Debugging Web Parts with Visual Studio 2010

        • 8.2.1 Attaching to processes

        • 8.2.2 Debugging sandboxed solutions

        • 8.2.3 Debugging feature receivers

      • 8.3 The Developer Dashboard

        • 8.3.1 Enabling the Developer Dashboard

        • 8.3.2 Using the Developer Dashboard

        • 8.3.3 Using monitored scopes

        • 8.3.4 Logging using scoped performance monitors

        • 8.3.5 Custom logging to the Developer Dashboard

      • 8.4 Custom error handling

      • 8.5 Other debugging tools

        • 8.5.1 ASP.NET tracing

        • 8.5.2 Internet Explorer Developer Tools or Firebug

        • 8.5.3 Fiddler web proxy

      • 8.6 Summary

    • Programming and caching for performance

      • 9.1 Programming for performance

        • 9.1.1 Computational performance

        • 9.1.2 Object and memory usage

        • 9.1.3 Scalability

        • 9.1.4 Perceived performance

      • 9.2 Programming for performance in SharePoint

        • 9.2.1 Proper handling of SharePoint objects

        • 9.2.2 Make smarter queries to SharePoint

        • 9.2.3 Asynchronous operations

        • 9.2.4 Improve performance of resources

      • 9.3 Caching techniques

        • 9.3.1 ASP.NET caching

        • 9.3.2 Caching objects and structures

        • 9.3.3 Caching resources

      • 9.4 Summary

    • Dynamic interfaces in Web Parts

      • 10.1 Using Ajax and JavaScript in Web Parts

        • 10.1.1 Working with Microsoft ASP.NET AJAX Extensions

        • 10.1.2 JavaScripts in Web Parts

        • 10.1.3 Working with jQuery

      • 10.2 Using the SharePoint dynamic UI features

        • 10.2.1 Notification messages and the status bar

        • 10.2.2 The dialog framework

      • 10.3 Enabling a Web Part to use the Ribbon

        • 10.3.1 Adding controls to the Ribbon

        • 10.3.2 Making a Web Part context aware

      • 10.4 Summary

    • The Client Object Model and Silverlight Web Parts

      • 11.1 The Client Object Model

        • 11.1.1 What is the ECMAScript Client Object Model?

        • 11.1.2 Working with the Client Object Model and Web Parts

      • 11.2 Silverlight Web Parts

        • 11.2.1 SharePoint Silverlight Web Part

        • 11.2.2 Building a Silverlight SharePoint application

        • 11.2.3 Input parameters to the Silverlight Web Part

        • 11.2.4 Packaging the Silverlight Web Part

        • 11.2.5 Preconfiguring the Silverlight Web Part

        • 11.2.6 Custom Silverlight Web Part

        • 11.2.7 Enabling custom Silverlight Web Part interaction with SharePoint

      • 11.3 Summary

    • Making Web Parts mobile

      • 12.1 SharePoint 2010 mobile interface

        • 12.1.1 Using the mobile SharePoint 2010 interface

        • 12.1.2 Page, form, and Web Part support

        • 12.1.3 Supported mobile Web Parts

        • 12.1.4 Supported devices

        • 12.1.5 Browser definition files

      • 12.2 Mobile Web Part adapters

        • 12.2.1 Create a mobile adapter

        • 12.2.2 Register a mobile adapter

      • 12.3 Mobile controls

      • 12.4 Summary

    • Design patterns and testability

      • 13.1 Design patterns

        • 13.1.1 What are design patterns?

        • 13.1.2 Loose coupling

        • 13.1.3 Dependency injection

      • 13.2 The Model-View-Presenter pattern

        • 13.2.1 The Passive View pattern

        • 13.2.2 The Supervising Controller pattern

        • 13.2.3 MVP and Web Parts

      • 13.3 SharePoint Service Locator

        • 13.3.1 Service locators

        • 13.3.2 Use the SharePoint Service Locator

      • 13.4 Testing Web Parts

        • 13.4.1 Unit-testing

        • 13.4.2 Creating a test project

        • 13.4.3 Mock objects

        • 13.4.4 Test the Web Part

      • 13.5 Summary

  • Dashboards and connections

    • Connecting Web Parts

      • 14.1 Introducing Web Part connections

      • 14.2 Connecting Web Parts

        • 14.2.1 Connecting using the web interface

        • 14.2.2 Connecting using SharePoint Designer

        • 14.2.3 Connection permissions

      • 14.3 Creating connectable Web Parts

        • 14.3.1 Connect using custom interfaces

        • 14.3.2 Connect using standard connections

        • 14.3.3 Ajax and Web Part connections

      • 14.4 Filter Web Parts

        • 14.4.1 Default filter Web Parts

        • 14.4.2 Web Part transformers

        • 14.4.3 The ITransformableFilterValues interface

      • 14.5 Summary

    • Building pages and dashboards

      • 15.1 Working with pages

        • 15.1.1 Pages and Web Part zones

        • 15.1.2 The Web Part Manager

      • 15.2 Deploying dashboards

        • 15.2.1 Deploying using a Feature

        • 15.2.2 Deploying using a Feature receiver

        • 15.2.3 Static dashboards

        • 15.2.4 Dashboards with a sandboxed Web Part

        • 15.2.5 Deploying using a site definition

      • 15.3 Summary

  • appendix: Out-of-the-box Web Parts in SharePoint 2010

    • A.1 SharePoint Foundation 2010 Web Parts

    • A.2 SharePoint 2010 Server Standard Web Parts

    • A.3 SharePoint Server 2010 Enterprise Web Parts

  • index

    • Numerics

    • A

    • B

    • C

    • D

    • E

    • F

    • G

    • H

    • I

    • J

    • K

    • L

    • M

    • N

    • O

    • P

    • Q

    • R

    • S

    • T

    • U

    • V

    • W

    • X

    • Y

    • Z

Nội dung

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

TỪ KHÓA LIÊN QUAN