SharePoint 2007 Development Recipes - A Problem-Solution Approach

von: Mark Gerow

Apress, 2008

ISBN: 9781430209621 , 512 Seiten

Format: PDF, OL

Kopierschutz: Wasserzeichen

Windows PC,Mac OSX geeignet für alle DRM-fähigen eReader Apple iPad, Android Tablet PC's Online-Lesen für: Windows PC,Mac OSX,Linux

Preis: 46,00 EUR

Mehr zum Inhalt

SharePoint 2007 Development Recipes - A Problem-Solution Approach


 

Contents at a Glance

4

Contents

5

About the Author

8

About the Technical Reviewer

9

Introduction

10

Is This a “Beginner” or “Advanced” Book?

11

How This Book Is Organized

12

Have Fun with It!

13

Site Management

14

Recipe 1-1. Creating a Site Collection by Using the Object Model

14

Recipe 1-2. Creating a Site Collection by Using Web Services

23

Recipe 1-3. Creating a Site (or Web) by Using the Object Model

34

Recipe 1-4. Creating a Site (or Web) by Using a Web Service

41

Recipe 1-5. Adding and Modifying Properties of a Site

51

Recipe 1-6. Adding a Web Part by Using the Object Model

59

Recipe 1-7. Adding a Web Part by Using a .dwp or .webpart File

68

Recipe 1-8. Calculating Storage for all Document Libraries in a Site

77

Recipe 1-9. Creating a Script to Back Up All Site Collections by Using STSADM

86

Working with Users

92

Recipe 2-1. Obtaining and Displaying Users of a Site

92

Recipe 2-2. Adding Users to a Site by Using the Object Model

103

Recipe 2-3. Adding Users and Groups to a Site by Using the Web Services

110

Recipe 2-4. Adding Groups to a Site by Using the Object Model

118

Recipe 2-5. Adding Roles to a Web Site by Using the Object Model

125

Recipe 2-6. Adding Roles to a Web Site by Using the Web Services

134

Recipe 2-7. Adding Users to Active Directory

145

Working with Lists

157

Recipe 3-1. Creating a List by Using the Object Model

157

Recipe 3-2. Creating a List by Using Web Services

168

Recipe 3-3. Updating a List by Using the Object Model

179

Recipe 3-4. Updating a List by Using Web Services

192

Recipe 3-5. Adding a Document to a Document Library by Using the Object Model

203

Recipe 3-6. Adding a Document to a Document Library by Using Web Services

209

Working with Web Parts

218

Recipe 4-1. Creating a Simple RSS Feed Web Part

219

Recipe 4-2. Creating an XML Web Part

230

Recipe 4-3. Creating a SQL Web Part

249

Recipe 4-4. Creating a Page Viewer Web Part

261

Recipe 4-5. Creating a Connectable Page Viewer Web Part

272

Recipe 4-6. Reading Web-Part Parameters from the Querystring

284

Recipe 4-7. Using the SmartPart to Expose a .NET User Control

296

Recipe 4-8. Creating a ZoneTab Web Part

309

Recipe 4-9. Creating a Web Part to Edit SPWeb Properties

327

Working with Event Handlers

347

Why Create an Event Handler?

347

When to Use an Event Handler Rather Than a Workflow?

348

Event Handler Enhancements in SharePoint 2007

348

Recipe 5-1. Updating List Fields When Adding a Document to a Document Library

349

Recipe 5-2. Sending an Email When a Task Is Completed

359

Recipe 5-3. Preventing Deletion by Using an Event Handler

367

Recipe 5-4. Creating a Calculated Field by Using an Event Handler

374

Working with Templates and Other XML Files

387

Recipe 6-1. Adding a PDF Image to Docicon.xml

387

Recipe 6-2. Adding Custom Menus by Using a Feature

391

Recipe 6-3. Adding Web Parts Through Onet.xml

412

Recipe 6-4. Adding an ExecuteUrl Directive to Onet.xml

419

Modifying Pages with JavaScript

437

Recipe 7-1. Hiding the QuickLaunch Menu

437

Recipe 7-2. Opening List Items in a New Window

445

Advanced Dishes

452

Recipe 8-1. Customizing the STSADM Command

452

Recipe 8-2. Crawling a Database Table by Using a BDC Schema

461

Recipe 8-3. Creating a Custom MOSS Search Page

480

Index

491