St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,

Slides:



Advertisements
Similar presentations
Philadelphia Area SharePoint User Group January 30, 2013 Chris Mann RJB Technical Consulting
Advertisements

Creating Page Layouts using SharePoint Designer or Visual Studio Becky Bertram MCSD, MCAD MCTS WSS Development MCTS MOSS Development
Site Collection, Sites and Sub-sites
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Randy Williams, MOSS MVP Senior Consultant Synergy Corporate Technologies.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Visual Studio 2010 SharePoint Developer Tools. Developer Tools for SharePoint  Familiar VS Experience  Build, Debug, Deploy SharePoint projects  Visual.
SharePoint 2010 First Look: What's new for Developers in Microsoft SharePoint 2010 Matthew McDermott, MVP Aptillon, Able
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
St. Louis Day of Dot Net 2011 Jump Start: SharePoint Development Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET, MCTS
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Becky Bertram SharePoint MVP
Site Provisioning Options Web Template Fundamentals Web Templates and App Webs Custom Solutions for Site Provisioning Wrap Up.
SPC220 Web Template FundamentalsCreating Web Templates Using Web Templates Web Templates and App Webs Wrap Up.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
SharePoint Development 101: Feature Design By Becky Isserman
Introduction to SharePoint Development with VS2010 Paul Yuknewicz Lead Program Manager
SharePoint 2010 and Office 2010 Development Randy Williams Senior Consultant & Trainer Synergy Corporate Technologies.
Workflow and SharePoint Presented by Ben Geers. Overview What is workflow? Windows Workflow Foundation How does workflow apply to SharePoint? WSS v3 vs.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
Variations and the MUI in SharePoint 2010 Gary Lapointe, MVP.
Creating Page Layouts using SharePoint Designer or Visual Studio Becky Bertram MVP SharePoint Server, MCSD, MCAD
Agenda Principal Consultant, SharePoint Development Team Lead John Ramminger Linked In:
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
SharePoint Workflows with Visual Studio Stuart Cox RBA Consulting techpunch.wordpress.com.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Sites Lists Advanced Site collection administration –Moving sites –Save site as template.
HOW SHAREPOINT WORKS By Gary Newman. Root Folder Virtual Directories SP Farm DNS Iterative Forward DNS query for A host record HTTP request HTML & JS.
Upgrading Projects to Visual Studio 2010 Upgrading Projects to SharePoint 2010 Integrating with SharePoint 2010.
Office Business Applications Workshop Defining Business Process and Workflows.
SharePoint Online – Developing Solutions for the Cloud Chris Mayo Microsoft Corporation
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Office Server Specific Web content management –Page structure, layouts, and controls –Publishing.
What’s New in SharePoint 2010 SharePoint 2010 Development Primer New Developer Tools for SharePoint 2010 SharePoint 2010 Integration with PowerShell.
Michael Hofer Senior Consultant Microsoft Corporation.
Building an ASP.NET Website OUTLINE DIFFERENT PROJECT TYPES. DIFFERENT PROJECT TEMPLATES. NUMEROUS FILE TYPES AVAILABLE IN ASP.NET. CREATING STRUCTURED.
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
1 © Xchanging 2010 no part of this document may be circulated, quoted or reproduced without prior written approval of Xchanging. MOSS Training – SharePoint.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Site Definitions and Features Overview Review of SharePoint 2003 site definitions What’s.
Microsoft ® Official Course Designing and Managing Features and Solutions Microsoft SharePoint 2013 SharePoint Practice.
Yaroslav Pentsarskyy Involved in SharePoint since 2003 SharePoint MVP (2009- Present) Blog: sharemuch.com.
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
Extending SharePoint through Web Parts and ASP.NET 최승현 대리 한국마이크로소프트.
NET Development on Microsoft SharePoint Technology Part 4: Templates, Features, and Solution Deployment Mick Badran Breeze Training Consulting Trainer.
Application Hosting and Customization Introducing Sandboxed Solutions Executing Code in the Sandbox Sandbox Resource Monitoring.
11 User Controls Beginning ASP.NET in C# and VB Chapter 8.
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
Making the Most of Search in SharePoint 2013 Christina Wheeler.
Introduction ITEC 420.
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
St. Louis Day of Dot Net 2011 Jump Start: SharePoint Development
Unit 7 Learning Objectives
What's new in the world of SharePoint development and deployment
Developing GIS WebParts in SharePoint
Automate Custom Solutions Deployment on Office 365 and Azure
Line of Business Solutions in SharePoint Online
What is SharePoint and why you should care
SharePoint Site Admin Training
Introduction to SharePoint Framework (SPFx)
Module 1: Getting Started
PSC Group, LLc Office 365/SharePoint Online Migration traps and tricks
Introduction to SharePoint Framework (SPFx)
07 | Workflows Chris Johnson | SharePoint Guru
SharePoint Permissions Manager
Visual Studio 2010 SharePoint Development Tools Overview
SharePoint Foundation 2010
SharePoint services Provides team collaboration through SharePoint Sites and makes it easy for communities to work together on documents, tasks, contacts,
Microsoft Dynamics.
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET, MCTS www.beckybertram.com @beckybertram

SharePoint Six-in-One The information in this presentation is condensed from chapters 7 and 8, authored by myself, in “SharePoint 2010 Six-in-One”, published by Wrox.

Topics What makes up a web part? What is a SharePoint feature? What is a SharePoint solution? What’s a sandboxed solution? Using Visual Studio 2010 with SharePoint Understanding Office 365 SharePoint Sites

Understanding Web Parts

What is a Web Part? Simply a Web Control, which inherits from System.Web.UI.WebControls.WebParts.WebPart Has special “plumbing” to allow it to be moved around a SharePoint page. Has uniform properties such as size, “chrome”, etc. Contains other controls. “Visual” Web Part contains a User Control, which can be used to visually design your web part.

What Can Web Parts Be Used For? Anything! Can be used to access data within SharPoint Good starting point for ASP.NET developers. Basically same process as writing an ASP.NET User Control. Note: Keep in mind that you won’t have as much flexibility with an O365 site as you’d have if you owned the farm.

Web Part Files Assembly Configuration file (.webpart or legacy .dwp extension): Title, Chrome type, assembly and type name, etc. Element manifest: tells SharePoint how to add Web Part to the Web Part Gallery, including what the Web Part’s title, group name should be.

Features and Solutions

What is a SharePoint Feature? A unit of functionality within SharePoint that can be turned on, or “activated”. Hard to describe because it can be essentially any piece of functionality in SharePoint. Usually, either code is executed, or content is added to a content database (i.e. something is changed in a site collection or site). You could write a feature to: Add a site column, content type, or list to a site. Add an item to a list Start a timer job. Kick off a workflow Add a web part to the web part gallery Add a web part to a page.

Scope 4 different scopes: Farm, Web Application, Site Collection, Site A feature can be activated only once per item at the given scope. (For instance, a feature scoped to the Site Collection level could be activated in both the “HR” and “IT” site collections, but it could only be activated once in the HR site collection and activated only once in the IT site collection.) Examples: Feature that deploys a master page would be scoped to Site Collection level, while feature that adds a particular document library to a site could be scoped to the Site level.

Feature Activation/Deactivation Features can be activated or deactivated via the browser or by using PowerShell

What is a Solution? A solution package is just a cabinet file with an extension of WSP. A solution is a mechanism for deploying assets to your SharePoint server farm. Assets: assembly, files, features Manifest: solution properties, assembly location, feature location, web.config changes Solutions work across a load balanced farm.

Sandboxed vs. Farm Solutions Farm solutions deploy assets to the server file system and assemblies are executed from within the web server process. Sandboxed solutions are extracted and run within their own separate “sandboxed” process, and are thus safer. Sandboxed solutions have reduced functionality, but are safer to use when the site is co-located (as in an O365 site). Sandboxed solutions can be deployed by site administrators, whereas farm solutions must be deployed by server admins. Resource throttling prevents “rogue” sandboxed solutions from chewing up server resources. Farm solutions added to server via PowerShell (or STSADM tool), deployed via PowerShell or Central Admin. Sandboxed solutions uploaded to Solutions Gallery, deployed from there.

Solutions Gallery Only in the top level site Only site collection administrators can activate sandboxed solutions Access via the Site Settings page of top level site.

Visual Studio 2010 Visual Studio 2010 must be used to build SharePoint 2010 applications. You can use Visual Studio 2010 to build SharePoint 2007 solution packages, but you still have to do the manual work to compile the packages. You cannot use VS 2008 to build SP2010 solutions. Visual Studio 2010 comes with a number of built in project templates that can serve as a starting point for building SharePoint solutions, (including “Web Part” and “Visual Web Part”.) Built-in debugging functionality

VS Third Party Add-Ons SharePoint Power Tools: http://visualstudiogallery.msdn.microsoft.com/8e602a8c-6714-4549-9e95-f3700344b0d9/ CKS-Dev: http://cksdev.codeplex.com/ (Download from within VS IDE)

Kinds of Web Parts (Compiled) Web Part: Written using just .NET code. Visual Web Part: Web Part contains a single control, which is a User Control. User Control deployed to the CONTROLTEMPLATES folder on the web server. Sandbox-enabled Visual Web Part: Enabled with the Visual Studio Power Tools for SharePoint. Allows you to use Visual Web Part with sandboxed solutions.

Demo: Creating a Sandboxed Web Part

Office 365 Site Collection Top level site of the site collection is your public site. (For example, http://beckybertram.sharepoint.com) Team Site sits inside top level site, but does not have anonymous access enabled by default. Sandboxed solutions must be deployed to Solutions gallery in the top level site. Link to site settings not available from site actions menu. Navigate directly: /_layouts/settings.aspx.

Demo: Deploying Web Parts to an O365 Site

St. Louis SharePoint Users Group http://www.stlsug.org

Questions?