VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.

Slides:



Advertisements
Similar presentations
Randy Williams, MOSS MVP Senior Consultant Synergy Corporate Technologies.
Advertisements

DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
SharePoint and WebFOCUS
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Create Windows ® Applications with.NET Allan Knudsen.NET Developer Evangelist Microsoft.
27. to 28. March 2007 | Geneva, Switzerland. Fabrice Romelard ilem SA Level 200.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 7 Configuring File Services in Windows Server 2008.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
OFC406 Windows SharePoint Services (version 3) Development 2: ASP.NET, Web Parts, Master Pages, Field Types, and More Ted Pattison Researcher and Trainer.
Edwin Sarmiento Microsoft MVP – Windows Server System Senior Systems Engineer/Database Administrator Fujitsu Asia Pte Ltd
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
A Close Look Inside the SharePoint Engine Randy Williams, MVP MOSS Synergy Corporate Technologies
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 2: The ASP.Net Template Dave.
HTML, GUI, ASP.NET Rina Zviel-Girshin Lecture 2
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
Sustainable SharePoint 2010 Customizations By Bill Keys.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Introduction to ASP.NET 1www.tech.findforinfo.com.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
.NET Framework Danish Sami UG Lead.NetFoundry
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Welcome to the Delaware Valley SharePoint User Group Russ Basiura Principal Consultant RJB Technical Consulting
Slide 1.NET Development for Project 2003 Samples from the Project 2003 SDK Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation.
COMP3241 E-Business Technologies Richard Henson University of Worcester October 2012.
Efficient Deployment & Management of ASP.NET 2.0 Applications on IIS 6.0 Alexis Eller Program Manager Internet Information Services Microsoft Corporation.
Create Windows ® Applications with.NET Carlotta Eaton ( Associate Professor of IST New River Community College Slides by Microsoft.
Slide 1 ASP Authentication There are basically three authentication modes Windows Passport Forms There are others through WCF You choose an authentication.
Section 11: Implementing Software Restriction Policies and AppLocker What Is a Software Restriction Policy? Creating a Software Restriction Policy Using.
Office Business Applications Workshop Defining Business Process and Workflows.
Module 1: Working with ASP.NET. Overview Introducing ASP.NET Creating Web Forms Adding ASP.NET Code to a Page Handling Page Events Discussion: ASP vs.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
SharePoint Online – Developing Solutions for the Cloud Chris Mayo Microsoft Corporation
DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp.
Solutions using Microsoft Content Management Server 2002 Connector for SharePoint Technologies Sue Corke Mark Harrison Microsoft UK.
Web Services Error Handling and Debugging. Agenda Simple SOAP faults Advanced SOAP faults SOAP headers and faults Error handling From a Service Perspective.
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
Microsoft ® Official Course Developing a Publishing Site for Web Content Microsoft SharePoint 2013 SharePoint Practice.
First Steps With SharePoint Technologies David Cattanach, Microsoft Limited.
Configuring and Deploying Web Applications Lesson 7.
Web Development in Microsoft Visual Studio 2013 / 2015.
Extending SharePoint through Web Parts and ASP.NET 최승현 대리 한국마이크로소프트.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
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.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Web Parts Overview Web parts in SharePoint 2007 “Hello World” web part Typical deployment.
Windows SharePoint Services v3.0 Martin Parry Developer & Platform Group Microsoft Limited
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Databases Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – SharePoint Database.
Alexey Polovinkin Post graduate student, CMC department.
SQL Server Reporting Services for.NET Developers Bret Stateham
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
ClickOnce Deployment (One-click Deployment)
How to be a SharePoint Developer
Developing GIS WebParts in SharePoint
What is SharePoint and why you should care
Module 1: Getting Started
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
Web Development Using ASP .NET
Visual Studio 2010 SharePoint Development Tools Overview
ClickOnce Deployment (One-click Deployment)
Windows Forms in Visual Studio 2005: An in-depth look at key features
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part Development.: Michael Williams :. May 12, 2005

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 2 I.Web Part Essentials II.Microsoft FrontPage Customization III.Web Part Development IV.Resources V.Questions Session Agenda

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 3  Building blocks for modular web pages  Provides connection to information + apps  Built by developers  ASP.NET Server Controls  Added to pages by site owners  Easy configuration  Personalized by end users  Rich and custom client experience Web Part Essentials

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 4 Web Part Essentials – Developer Perspective  ASP.NET Server Control based  Web Part is a ASP.NET server control  Full power of Visual Studio as a premier development environment  Project templates on MSDN  Intelli-sense, debugging, source control, etc.  Deployed as an assembly  Reusable across thousands of pages and sites  Admins control which Web Parts are available  End users decide where Web Parts are used

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 5 Web Part Essentials - ExamplesAnnouncementsMembers Events Contacts Links

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 6 Web Part Essentials – Tool Parts

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 7  SharePoint Web Page  Zones are embedded directly on the page <SmartPages:WebPartZone runat="server" Title=“Left ZoneID=“…" Orientation="Vertical“ AllowCustomization=“true” AllowPersonalization=“true”/> Web Part Essentials – Zones  Database  All users and just for me web parts inside zones are stored in the SharePoint WebParts table  Personalizations stored in the SharePoint Personalization table

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 8  Web Parts are equivalent to ASP.NET Web Form Controls  SmartPage - controls on page determined by database  URL of the page  ID of the current user (personalization)  SmartPages work in safe mode only Web Part Essentials – Working Together ASP.NET Page Zone 2 Zone 1 Zone 3 Web Part Framework Content DB ASP.NET Page Web Form Controls

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 9 Microsoft FrontPage Customization

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 10 Web Part Development -.Net Framework  Custom ASP.Net Web Control derived from System.Web.UI.Control  Base class handles –  Page rendering  Property settings  Post-back events  State management

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 11 Web Part Development -.Net Template  Download WebPartTemplatesforVSNetSample.EXE  Download WebPartTemplatesforVSNetSample2.EXE  Templates help creation of Web Parts  Similar to default server control file and project templates of VS.NET

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 12 Web Part Development – Create New Web Part Library Project

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 13 Web Part Development – The.DWP File  Description Web Part

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 14 Web Part Development – Web Part Namespace & Class Name  Namespace is MyWebPart1  Class name is WebPart1 namespace MyWebPart1 { /// /// Summary description for WebPart1. /// [DefaultProperty("Text"),ToolboxData(" "),XmlRoot(Namespace="MyWebPart1")] public class WebPart1 : Microsoft.SharePoint.WebPartPages.WebPart { // more code here

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 15 Web Part Development – Assembly Properties  Assembly name is MyWebPart1  Namespace is MyWebPart1

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 16 Web Part Development – Remote Server Output Path  If developing against remote machine  Set the output path to the remote location's bin directory

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 17 Web Part Development – “Hello World!” Code /// /// Render this Web Part to the output /// parameter specified. /// /// The HTML writer to /// write out to protected override void RenderWebPart(HtmlTextWriter output) { output.Write(SPEncode.HtmlEncode(Text)); //Create a label Label myLabel = new Label(); //Write the text myLabel.Text = "Hello World"; //Add the label control to the page this.Controls.Add(myLabel); //Render the HTML output myLabel.RenderControl(output); }

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 18 Web Part Development – Code Access Security  CAS allows box administrators grant specific rights to assemblies  Goal is to separate user access rights from the assembly access rights  Administrators can  Deny access to local resources for partial trusted assemblies  Allocate trust based on signatures, strong names, and certificates

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 19 Web Part Development – Code Access Security  Provides a safe execution environment for SharePoint & Web Part Pages  Only registered assemblies are executed.  NO SERVER-SIDE SCRIPT CODE ON SAFE MODE PAGES.  CAS eliminates the following risks -  User-inserted code  Infinite loop  Memory consumer  Unapproved user-inserted references to Web Form Controls & classes  How to use Safe Mode  Install web part assembly in either –  Virtual server’s bin directory  Global Assembly Cache (GAC)  On each virtual server –  Enable the assembly in the SafeControls list in the web.config file  Administrator optionally enables specific types within the assembly  Control will not instantiate during the rendering of the.aspx page if class is marked unsafe or unlisted

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 20 Web Part Development – Strong Naming Assemblies  Create Key-pair File  c:\Program Files\Microsoft Visual Studio.NET 2003\SDK\v1.1\Bin\SN.exe  SN –k c:\keypair.snk  Modify Assembly  Web Part’s AssemblyInfo.cs  Modify [assembly: AssemblyKeyFile(“path\filename”)]

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 21 Web Part Development – Web Part Deployment  Assembly located in -  GAC  bin (sub directory under the application root)  Windows SharePoint Services  Controls, Namespaces and Assemblies have to be marked as ‘safe’ in web.config  Class Resources and.dwp’s deployed to specific locations  Resources are deployed relative to assembly location  File System locations –  %AppRoot%\wpcatalog\%AssemblyName%  %AppRoot%\wpresources\%AssemblyName%  C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\%AssemblyName%  URL -  /_wpresources/

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 22 Web Part Development – Web Part Package  Package contains:  Manifest.xml  Web Part Assemblies  Class Resources .DWP’s  Package is a cabinet file (.cab)  Create a.cab file using MakeCab.exe  Command-line based  Available with Windows.Net Server 2003  Creates web part packages with localized resources  Web Part Packages are deployed using the stsadm.exe tool  3 operations related to Web Part Packages -  AddWPPack  EnumWPPacks  DeleteWPPack

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 23 Web Part Development – Web Part Package Manifest

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 24 Web Part Development – Add “Hello World” Web Part

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 25 Web Part Development – Debugging Web Parts  Local machine  Set in web.config of the virtual server  Enable ASP.Net debugging  Attach to the w3wp.exe process  Remote machine  Similar setup steps as debugging a project on a local machine  Require permissions to debug on the remote machine (integrated security)  Attach to the remote w3wp.exe process  Set start page in Visual Studio.NET that includes the Web Part

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 26 Web Part Development – Rendering Overview ASPX Page Web Part WebPart.Render()CustomPart.RenderWebPart() ASP.NET starts page render Request

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 27 Resources Microsoft SharePoint Microsoft SharePoint Server Customization Microsoft Developer Introduction to Web Parts us/odc_SP2003_ta/html/sharepoint_northwindwebparts.asp Microsoft SQL Server

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 28 Questions?

VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview 29 VITALE, CATURANO & COMPANY PC