SharePoint 2007 Development Recipes (eBook)
512 Seiten
Apress (Verlag)
978-1-4302-0962-1 (ISBN)
SharePoint 2007 Development Recipes offers a range of ready–to–use code recipes that provide the building blocks for solving many common SharePoint 2007 programming dilemmas. This practical, hands–on guide categorizes recipes by problem area, for example site management, event handlers, users, lists, and web parts, and source code is provided in both VB and C#. As well as providing an invaluable reference, Mark Gerow also includes clear, supporting guidelines to help you modify the code samples for the broadest range of applications.
For each recipe you will find
- Background and design considerations
- Source code in both VB and C#
- Discussion of variations on the provided examples
- Cross–reference to core SharePoint classes
If you find yourself asking, 'How do I solve this SharePoint development problem?' you will find all the answers in Mark Gerow’s supremely useful book.
Mark Gerow has more than 20 years of experience in IT, professional services, and software product development, and has provided consulting to hundreds of companies throughout the San Francisco Bay Area and northern California. He currently works for Fenwick & West, LLP, where he is responsible for defining and implementing the firm's intranet and extranet strategies using SharePoint technologies. Mark holds a bachelor of arts degree with majors in computer and information sciences and economics from the University of California, Santa Cruz, and a master's in business administration from Santa Clara University. He is also a project management professional, certified by the Project Management Institute. Mark lives with his family in the San Francisco Bay Area.
SharePoint 2007 Development Recipes offers a range of ready–to–use code recipes that provide the building blocks for solving many common SharePoint 2007 programming dilemmas. This practical, hands–on guide categorizes recipes by problem area, for example site management, event handlers, users, lists, and web parts, and source code is provided in both VB and C#. As well as providing an invaluable reference, Mark Gerow also includes clear, supporting guidelines to help you modify the code samples for the broadest range of applications.For each recipe you will findBackground and design considerationsSource code in both VB and C#Discussion of variations on the provided examplesCross–reference to core SharePoint classesIf you find yourself asking, "e;How do I solve this SharePoint development problem?"e; you will find all the answers in Mark Gerow’s supremely useful book.
Mark Gerow has more than 20 years of experience in IT, professional services, and software product development, and has provided consulting to hundreds of companies throughout the San Francisco Bay Area and northern California. He currently works for Fenwick & West, LLP, where he is responsible for defining and implementing the firm's intranet and extranet strategies using SharePoint technologies. Mark holds a bachelor of arts degree with majors in computer and information sciences and economics from the University of California, Santa Cruz, and a master's in business administration from Santa Clara University. He is also a project management professional, certified by the Project Management Institute. Mark lives with his family in the San Francisco Bay Area.
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
Erscheint lt. Verlag | 29.8.2008 |
---|---|
Zusatzinfo | 512 p. |
Verlagsort | Berkeley |
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Netzwerke |
Mathematik / Informatik ► Informatik ► Software Entwicklung | |
Schlagworte | C# • Design • Development • programming • XML |
ISBN-10 | 1-4302-0962-3 / 1430209623 |
ISBN-13 | 978-1-4302-0962-1 / 9781430209621 |
Haben Sie eine Frage zum Produkt? |
![PDF](/img/icon_pdf_big.jpg)
Größe: 8,9 MB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.
Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich