microsoft sharepoint training | sharepoint online training | sharepoint Course
Introduction to SharePoint for .NET...
Transcript of Introduction to SharePoint for .NET...
1
Introduction to SharePoint for .NET Developer
Microsoft Partner Day
2
Agenda
SharePoint Product & Technology
Windows SharePoint Services for Developers
Visual Studio Extensions For Windows SharePoint Services
SharePoint Intro For .NET Developers
Introduction to Web Parts
Introduction to Workflow
Introduction to Content Type
3
SharePoint Product & Technology
Set of products and technology with informative and collaborative.
Web-based capabilities
Include two platformsWSS
MOSS
4
SharePoint Product & Technology
Collaboration
DocumentsLists
ViewsVersioning
Security
PagesWeb PartsSecurity
Web services
Announcements, Presence, Contacts, Events, Libraries, Surveys, Discussions, Tasks, Issues…
5
SharePoint Product & Technology
6
Custom Coding
Custom Web Parts
Site Definitions
List Definitions
Content Types
Microsoft
Visual Studio
Web site
construction
Create lists and doclibs
Design Web pages
No-code data view/forms
Web part hookup
SharePoint
Designer + Browser
Goals For Development Collaborative development
7
Windows SharePoint Services for Developers
Provides core service to build collaborative applications.
Build solution that focus on business requirements. (Focus on low-level operations)
Robust storage services for all types of listsinclude many built-in feature use as a developer.
8
Windows SharePoint Services for Developers
Site Model Service provide page-rendering and navigation for Windows SharePoint Services sites.
Provide site template capabilities and visual blueprint for your site.
Authorization service control access to sites, pages, and list item data.
Visual Studio Extensions For Windows SharePoint ServicesVersion 1.2 released June 2008
More Project Template for VS2008
Fit and Finish, e.g., faster F5
Visual Basic and C# Support
Comprehensive User Guide (as separate download)
Search on VSeWSSv12
Support OS Windows Server 2003, Windows Server 2008
Required Windows SharePoint Services 3.0 (Basic installation only)
Visual Studio 2008 (Standard Edition, Professional Edition, or Team System)
10
What You GetProject templates
Project TemplatesTeam Site Definition
List Definition
Empty
Blank Site Definition
Web Part
Templates in the Workflow TabSharePoint 2007 Sequential Workflow
SharePoint 2007 State Machine Workflow
SharePoint Intro For .NET Developershttp://www.microsoft.com/click/SharePointDeveloper/
Online Hands on Labs –Also for Download
Downloadable VPC Image
Introductory MSDN Article
WebCast Series
Downloadable Presentations and Demos
Labs Screencasts
Video Interview on SharePoint Development
Quickstarts
Top 10 Artifacts For SharePoint Devs
Web Parts
Data Lists
Event Handlers
Workflow
Silverlight Web Parts
Page Navigation
Page Branding
Web Services
Content Types
User Management
What Are Web Parts?Modular and reusable building blocks typically used to build portal-style applications
Support for customization and personalization
Web Part infrastructure is required
Many Web Parts are avalable out of the box with Windows SharePoint Services 3.0 (WSS 3.0) and even more withMicrosoft® Office SharePoint® Server 2007 (MOSS 2007)
Major extensibility option within world of Microsoft®
SharePoint® Products and Technologies
14
WSS 3.0 WebPartPage Structure
Web Part Page in Windows SharePoint Services is designed with…One instance of SPWebPartManager class
One or more SPWebPartZones
Editor Zones and Catalog Zones supplied by Windows SharePoint Services pages
SPWebPartManager
SPWebPartZone (Left) SPWebPartZone (Right) Editor Zone
Catalog Zone
Web Part 1
Web Part 2
Web Part 3
Web Part 4
Web Part 5
Editor Part 1
Editor Part 2
Catalog Part 1
Catalog Part 2
15
Web Part Project
Class library project
Inherit from the System.Web.UI.WebControls.WebParts.WebPart class
using System;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;
namespace LitwareWebParts {
public class HelloWorldWebPart : WebPart {
protected override void CreateChildControls() {
Controls.Add(new LiteralControl("Hello, world"));
}
}
}
16
Deploying Web Part
Assembly deployed inBIN folder of Microsoft® InternetInformation Services (IIS) Web Application
Global Assembly Cache
Web Part registered as Safe Control in web.config of IIS Web Application
Web Part advertised in site collection
Manually
Web Part Feature
SharePoint Solution
automates all of this
Building and Deploying Simple
Web Part
18
What’s a Workflow?
Long Running : Days, Weeks, Months, Years
Serializable: Doesn’t have to be running the whole time
Resumable: Can be restarted when necessary
19
SharePoint and Workflow
SharePoint is a …Persistence Engine – You don’t have to worried about where the workflow is stored
User Interface – Interact via the Web or through Microsoft® Office system integration
Workflow brings a …Process – Bringing process to SharePoint data
20
Components of a Workflow
Simple Activities – Does something
Composite Activities – Coordinates other things
Custom Code (via Simple Activities) – Does everything else
21
Simple Workflow Activities
An activity is…An atomic set of instructions used to complete a unit of work
A reusable component used to compose workflows
Activities are like controls in forms development
You drag and drop them onto a design surface
You modify their properties with property sheets
You generate event handlers and write code inside
22
Content Types are Everywhere
In this seriesData Lists
Event Receivers
Workflows
In MOSSWeb Content Management (Page Layouts)
Records Management
23
Site Columns
Central, reusable model for column definitions
Scoped at the site collection level in the Site Column Gallery
Once created, use it in any list or library
Changes to the site column can be pushed to the lists and libraries making use of it
24
Using a Site Column
Lists and document libraries
Content types
25
Content Types
A reusable collection of settings you want to apply to a certain category of content
Metadata
Behaviors
Created at sitecollection level
Inheritance
Document
Report
Sales Report
Marketing Report
Legal Report
26