Pro ASP.NET SharePoint 2010 Solutions: Techniques for Building SharePoint Functionality into ASP.NET Applications

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

You’ve run into this issue numerous times. You are developing an ASP.NET application, and you need to incorporate functionality that comes pre-packaged in SharePoint. Wikis, blogs, document management, user authentication, access management—common needs across a variety of solutions. Without guidance and examples, interacting with underlying SharePoint components can be challenging, and working with the different SharePoint APIs is complicated. This book will introduce you to a variety of techniques to master the art of developing ASP.NET applications that are built upon a SharePoint foundation. With these techniques you can start using SharePoint as a development platform to enhance and complement your ASP.NET development. You’ll explore: Integration with SharePoint components The SharePoint/.NET/IIS implementation Configuration management Code Access Security Feature packaging Proper use of SharePoint APIs Advanced deployment techniques Pro ASP.NET Sharepoint 2010 walks you through all of the steps needed to successfully build and deploy ASP.NET solutions within the SharePoint platform. You'll then be able to greatly enhance your applications and build unique solutions that are a mixture of SharePoint and ASP.NET. What you’ll learn How to use SharePoint as a development platform How to build SharePoint features such as authentication, document management, and wikis and blogs into an ASP.NET application How to migrate an existing application from ASP.NET into SharePoint Understand the SharePoint / .NET / IIS implementation Different approaches to packaging ASP.NET within SharePoint Who this book is for This book is for ASP.NET developers who want to incorporate the functionality of SharePoint into their applications. Readers familiar with either ASP.NET development or with SharePoint will find valuable information which will greatly enhance their solutions and allow them to build solid, professional applications with minimal effort. Table of Contents SharePoint as a Development Platform Visual Studio 2010—Advancing the SharePoint Development Environment SharePoint, IIS, and the .NET Framework SharePoint Architecture—File System, Database, and the Provider Pattern Web Parts and Master Pages The Client Object Model Business Connectivity Services Touch Points—Integrating SharePoint 2010 and ASP.NET Medium Touch Point Solutions High Touch Point Solutions Index

Author(s): Dave Milner
Series: Expert's Voice in .NET
Edition: 1
Publisher: Apress
Year: 2010

Language: English
Pages: 368

Prelim......Page 1
Contents at a Glance......Page 6
Contents......Page 7
About the Author......Page 13
About the Technical Reviewer......Page 14
Acknowledgments......Page 15
Introduction......Page 16
SharePoint as a Development Platform......Page 17
Extensibility......Page 18
Web Site Extensibility......Page 19
Development Extensibility......Page 22
Document Management......Page 23
Authentication and Authorization......Page 24
Authorization......Page 25
Microsoft Office Integration......Page 26
SharePoint Designer 2010......Page 27
Visual Studio 2010 Integration......Page 28
Intranet Scenario......Page 29
Sandboxed Solutions......Page 30
Advanced Approaches to Application Development......Page 31
Summary......Page 32
Visual Studio 2010–Advancing the SharePoint Development Environment......Page 33
Anatomy of a Visual Studio 2010 SharePoint Project......Page 34
Empty SharePoint Project......Page 35
Package......Page 37
Visual Web Part......Page 38
SharePoint Customization Wizard......Page 39
Examining the Visual Web Part Solution......Page 42
Wrapping ASP.NET Development......Page 45
Coding the Sample Visual Web Part......Page 46
Examining the Deployment Process......Page 48
Deploying to a Test or Production Environment......Page 52
Using Features......Page 56
Feature1.feature and Feature1 Nodes......Page 57
Package Designer......Page 60
Sequential Workflow......Page 63
State Machine Workflow......Page 68
Event Receiver......Page 69
List Definition......Page 70
Site Definitions......Page 72
Team Development......Page 73
Production......Page 74
Summary......Page 75
SharePoint 2010 in IIS 7 Manager......Page 77
IIS and .NET Fundamentals......Page 78
HTTP.sys Protocol Listener......Page 79
ISAPI Filters......Page 80
Modules......Page 82
SharePoint 2010 File System Folders Under IIS......Page 84
SharePoint 2010 Virtual Directories......Page 85
Assemblies......Page 90
Modules......Page 91
SafeControls......Page 92
Code Access Security......Page 93
Custom Trust Level Configurations......Page 94
Strong Name Signing Assemblies......Page 96
Sandboxed Solutions......Page 97
Security......Page 99
Summary......Page 100
SharePoint Architecture–File System, Database, and the Provider Pattern......Page 103
SharePoint Root......Page 104
Program Files\Microsoft Office Server......Page 109
WSS Folders......Page 111
SharePoint 2010 Databases......Page 112
The Open/Closed Principle......Page 120
Single Responsibility Principle......Page 121
The Provider Pattern......Page 122
The Virtual Path Provider......Page 123
Summary......Page 124
Web Parts......Page 125
Building a Visual Web Part......Page 127
Adding Code......Page 131
Examining How SharePoint Loads User Controls......Page 133
Examining the Configuration Files......Page 134
Deploying the Visual Web Part......Page 135
Using the Developer Dashboard......Page 140
Building a Standard SharePoint Web Part......Page 141
Adding a Web Part to the Project......Page 143
Adding Code......Page 144
Building a Silverlight Web Part......Page 146
Adding Code......Page 148
Deploying the Silverlight Web Part......Page 151
Accessing External Database Content in a Web Part......Page 156
Storing the Connection String in an XML File......Page 160
Storing the Connection String in a Hidden List......Page 161
Storing the Connection String in the web.config File......Page 164
Master Pages......Page 168
Understanding Where Master Pages are Used......Page 169
V4.master......Page 171
Master Page Content......Page 172
Summary......Page 174
ECMAScript/JavaScript Clients......Page 175
Silverlight Components......Page 176
Client Object Model API Support......Page 177
Query Syntax Example—LoadQuery......Page 179
Updating Items Through the Client Object Model......Page 180
Deleting Items Through the Client Object Model......Page 181
Client Object Model Reading List Data via ASP.NET......Page 182
Client Object Model Writing List Data via ASP.NET......Page 186
Client Object Model Reading List Data via Silverlight—From a Web Part......Page 190
Client Object Model Writing List Data via Silverlight......Page 201
Client Object Model—Reading List Data via ECMAScript/JavaScript......Page 206
Summary......Page 209
What are Business Connectivity Services?......Page 211
External Content Types......Page 213
Setting Up BCS......Page 214
Open SharePoint 2010 Site......Page 216
Define New External Content Type......Page 219
Create Operations......Page 224
Create External Lists and Forms......Page 226
Export BDC Model for Visual Studio 2010......Page 228
Import BDC Model with Central Administration......Page 230
Create Events Database and Table......Page 231
New SharePoint BDC Model Project......Page 232
Create Events Code and EventsService Code......Page 233
Finish BDC Model and Deploy to SharePoint......Page 235
BCS Architecture......Page 238
BCS Connectors......Page 239
Secure Store Service......Page 240
Summary......Page 244
Integration Factors......Page 245
Existing ASP.NET Product......Page 247
Organizational Examples......Page 248
Touch Points......Page 249
Low Touch Point......Page 250
Cons......Page 251
Low-Effort Branding......Page 252
Medium-Effort Branding......Page 254
High-Effort Branding......Page 255
Working With a Brand......Page 256
Branding the ASP.NET Application......Page 258
Branding in SharePoint Designer Example......Page 260
Deploying Branded Solutions......Page 272
Publishing Layouts......Page 278
Customizing SharePoint 2010 Navigation......Page 280
Customizing Navigation Through the User Interface......Page 281
Adding Links Through the Object Model......Page 283
Summary......Page 284
Medium Touch Points......Page 285
Cons......Page 286
SharePoint 2010 and Windows Azure MarketPlace......Page 287
PowerPivot and Azure......Page 290
Accessing Azure DataMarket Feeds Through .NET......Page 299
Integrating External Feeds Through .NET WCF Services and jQuery......Page 303
Setting Up and Migrating Data to a SQL Azure Database......Page 304
Developing an ASP.NET Application with SQL Azure, WCF, and jQuery......Page 308
Consuming an oData Feed with jQuery in SharePoint 2010......Page 320
Summary......Page 323
Pros......Page 325
Tenets and Constraints for High Touch Point Solutions......Page 326
New ASP.NET Web Site Example......Page 327
Modifying Our ASP.NET Web Site for SharePoint 2010 Integration......Page 335
Deploy to SharePoint 2010 Layouts Directory......Page 338
Migrating An Existing ASP.NET Application......Page 339
Third-Party Libraries......Page 340
Load Testing Your Blended Solution......Page 341
Summary and Conclusion......Page 352
¦ A......Page 355
¦ B......Page 356
¦ C......Page 357
¦ D......Page 358
¦ F......Page 359
¦ G......Page 360
¦ J......Page 361
¦ N......Page 362
¦ P......Page 363
¦......Page 364
¦......Page 367
¦ W......Page 368
¦ X, Y, Z......Page 369