+ All Categories
Home > Documents > Introduction to SharePoint for .NET...

Introduction to SharePoint for .NET...

Date post: 31-Mar-2018
Category:
Upload: lemien
View: 222 times
Download: 1 times
Share this document with a friend
26
1 Introduction to SharePoint for .NET Developer Microsoft Partner Day
Transcript
Page 1: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

1

Introduction to SharePoint for .NET Developer

Microsoft Partner Day

Page 2: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 3: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

3

SharePoint Product & Technology

Set of products and technology with informative and collaborative.

Web-based capabilities

Include two platformsWSS

MOSS

Page 4: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

4

SharePoint Product & Technology

Collaboration

DocumentsLists

ViewsVersioning

Security

PagesWeb PartsSecurity

Web services

Announcements, Presence, Contacts, Events, Libraries, Surveys, Discussions, Tasks, Issues…

Page 5: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

5

SharePoint Product & Technology

Page 6: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 7: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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.

Page 8: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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.

Page 9: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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)

Page 10: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 11: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 12: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 13: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 14: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 15: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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"));

}

}

}

Page 16: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 17: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

Building and Deploying Simple

Web Part

Page 18: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 19: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 20: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

20

Components of a Workflow

Simple Activities – Does something

Composite Activities – Coordinates other things

Custom Code (via Simple Activities) – Does everything else

Page 21: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 22: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

22

Content Types are Everywhere

In this seriesData Lists

Event Receivers

Workflows

In MOSSWeb Content Management (Page Layouts)

Records Management

Page 23: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 24: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

24

Using a Site Column

Lists and document libraries

Content types

Page 25: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

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

Page 26: Introduction to SharePoint for .NET Developerdownload.microsoft.com/download/2/3/6/236BAEE2-18C5-43FB-8682-… · SharePoint Intro For .NET Developers Introduction to Web Parts ...

26


Recommended