OFC406 Windows SharePoint Services (version 3) Development 2: ASP.NET, Web Parts, Master Pages, Field Types, and More Ted Pattison Researcher and Trainer.

Slides:



Advertisements
Similar presentations
Microsoft Office SharePoint Server(Moss) (Basics) Ashok Kandula, Pune.
Advertisements

Microsoft Office SharePoint 2007 Technical Enablement Tour Patrick Tisseghem (Managing Partner – U2U)
Mark Rees Microsoft Consulting Services OFC409 Windows Workflow Foundation (WF) Primer Creating WF programs in Visual Studio Creating workflow templates.
Interactivity Navigating a data model Working with large quantities of data Entry Editing and adding data User feedback and validation Presentation.
SharePoint 2010: Building an enterprise public website Vinod Unny Enterprise InfoTech Microsoft Regional Director.
Web Client 2.0 for NAV 2013R2 Lukasz Zoglowek & Thomas S. Jensen
Windows Forms in Visual Studio 2005: An Overview Saurabh Pant Program Manager Microsoft Corporation.
 Alexander Malek Lead Program Manager SharePoint Microsoft Corporation BB47.
OFC308 Windows SharePoint Services (version 3) Development: Using Feature and Solution Definitions for Constructing Custom SharePoint Sites Todd C. Bleeker,
Saad Ladki Program Manager Microsoft Corporation WUX403.
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
WSS 3.0 Architecture and Enhancements Ashvini Shahane Member – Synergetics Research Lab.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
A Close Look Inside the SharePoint Engine Randy Williams, MVP MOSS Synergy Corporate Technologies
Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft DEV201 #auteched #dev201.
Business Solutions Using Microsoft ® Office SharePoint ® Server ROADSHOW.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
WEB 304 An Overview of ASP.NET and Windows Workflow Foundation Kashif Alam Program Manager Developer Division Microsoft Corporation.
OFC335 Microsoft Office Word 2007 XML Programmability: True Data/View Separation and Rich Eventing for Custom XML Tristan Davis Program Manager Microsoft.
WSS “v3” for Developers Jan Tielens Blog: Architect & Trainer U2U, Brussels.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
demo Instance AInstance B Read “7” Write “8”
customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
IIS Manager Details Delegated Administration Configuration System.
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
Gavin Russell-Rockliff BI Technical Specialist Microsoft BIN202.
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Overview Silverlight Client Object Model JavaScript Client Object Model Calling SharePoint Web Services Summary.
Microsoft Virtual Academy Chris Oakman | Managing Partner Infrastructure Team | Eastridge Technology Curtis Sawin | Technical Solutions Professional |
Running Reporting Services in SharePoint Integrated Mode: How and Why
OFC214 Microsoft Office Project Server 2007: Overview
Collaboration and Storage with WSS v3
Business Connectivity Services in SharePoint 2010 and Office 2010
Jon Flanders Senior Consultant MCW Technologies
Customize Office 365 Search and create result sources
Developing an app for SharePoint autohosted in Azure
Tech·Ed North America /15/2018 3:31 AM
Excel Services Deployment and Administration
Office 365 Development.
Transforming SharePoint Farm Solutions to the Add-in Model
SharePoint Designer 2010: Top 10 Things To Know
Developer Patterns to Integrate Silverlight 4.0 with SharePoint 2010
SPC2012 – IT-Pro 11/30/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /4/2018 3:19 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tech·Ed North America /7/2018 2:51 PM
System Center Application Management
Data Driven ASP.NET Web Forms Applications Deep Dive
Tech Ed North America /1/ :36 AM Required Slide
Tech Ed North America /1/2019 2:58 AM Required Slide
SPC Developer 1/1/2019 Deep Dive on the Capabilities of SharePoint Online's New Public Website Josh Stickler Program Manager WCM Kevin Gjerstad Principal.
Tech·Ed North America /2/2019 4:47 PM
TechEd /11/ :54 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
ASP.NET 4 Core Runtime for Web Developers
ASP.NET 4.0 State Management Improvements – Deep Dive
LitwareHR v2: an S+S reference application
Microsoft SharePoint Conference 2009 Jon Flanders
Visual Studio 2010 SharePoint Development Tools Overview
2010 Microsoft BI Conference
Building Business Applications in LightSwitch
TechEd /11/ :25 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Office 365 Development July 2014.
Microsoft Dynamics.
Presentation transcript:

OFC406 Windows SharePoint Services (version 3) Development 2: ASP.NET, Web Parts, Master Pages, Field Types, and More Ted Pattison Researcher and Trainer Ted Pattison Group

Agenda ASP.NET Integration Page Templates vs. Page Instances Master Pages Web Parts New ASP.NET Web Part Model Cross-site query User controls Extensible Field Types

Windows SharePoint Services 3.0 Terminology Farm The highest-level scope for a Windows SharePoint Services deployment An installation of one of more Web servers and back-end servers Each Windows SharePoint Services farm has one and only one configuration DB Web Application (a.k.a. Virtual Server) An IIS Web site extended with Windows SharePoint Services Entry point capable of hosting 10,000s of site collections Site Collection (a.k.a. Site) Unit of scale and ownership containing top-level site Stored in one specific content DB Site (a.k.a. Web) Many per site collection Uses same content DB as parent site

Sites and Site Collections Windows SharePoint Services manages sites in terms of site collections Each Web Application can host one or more site collections Each site collection has exactly one top-level site A site collection may (or may not) have child sites

High-level Windows SharePoint Services Architecture Windows SharePoint Services data and content stored in SQL Server Configuration data stored in Windows SharePoint Services configuration database Site content and customizations stored in content databases Basic DB architecture remains unchanged from v2 to v3 There are changes to undocumented database schemas

ASP.NET Integration Windows SharePoint Services 3.0 far more integrated with ASP.NET No more ISAPI filter No more separate page parser for Windows SharePoint Services Windows SharePoint Services 2.0 Windows SharePoint Services 3.0 ASP.NET 1.1 ASP.NET 2.0 Windows SharePoint Services 3.0

Moving from Windows SharePoint Services 2.0 to Windows SharePoint Services 3.0 Windows SharePoint Services v2 was built on ASP.NET 1.1 Windows SharePoint Services integrated more at the IIS level than at the ASP.NET level ASP.NET 1.1 does offer way to parse.aspx files from database ASP.NET 1.1 does not offer Web Part infrastructure ASP.NET 1.1 offers no satisfying page template solution ASP.NET 1.1 offers no built-in navigation infrastructure Windows SharePoint Services v3 is built on ASP.NET 2.0 Windows SharePoint Services integration in line with best practice ASP.NET extensibility ASP.NET 2.0 provides parser for.aspx pages from database ASP.NET 2.0 provides new Web Part infrastructure ASP.NET 2.0 offers Master Pages feature for page templates ASP.NET 2.0 offers rich navigation infrastructure

SPVirtualPathProvider New pluggable component type for ASP.NET Allows Windows SharePoint Services to perform ghost/unghost detection Windows SharePoint Services hands.aspx files over to ASP.NET for parsing PageParseFilter gives Windows SharePoint Services control over compilation

Web Pages in Windows SharePoint Services Sites Windows SharePoint Services Sites have two kinds of pages (.aspx files) Site pages that can be customized on a per site basis Application pages that cannot be customized on a per site basis Site pages are initially uncustomized Uncustomized version stored once on front-end Web server Uncustomized page also known as "ghosted" page Upon editing, customized site page stored in content DB Application pages only live on front-end Web server Single copy of application page used for all Windows SharePoint Services sites Served out of the _layout virtual directory

The _layouts Directory _layouts directory provides common point for sites Configured as virtual directory for all Windows SharePoint Services Web applications C:\Program Files\Common Files\Microsoft Shared\ web server extensions\12\TEMPLATE\LAYOUTS Provides standard relative URL for all sites in Web Application /_layouts/SiteSettings.aspx Used for Windows SharePoint Services system application pages Can also be used for custom application pages Images directory configured in _layouts directory Used by Microsoft to deploy standard Windows SharePoint Services images /_layouts/images/ALLUSR.GIF Can also be used to deploy custom images/graphics

Page Templates vs. Page Instances Page templates live on Web server file system They are defined inside site definitions and features They are used to create page instances Page instances exist inside the scope of a site Page instance initially ghosted when created from page template Ghosted page is really a pointer back to page template Uhghosted page stored inside content database Page instance can be created without a template

Master Pages Master Pages are a primary feature in ASP.NET 2.0 Provides effective template solution for pages within site Content page reuses chrome from master page Content page fill in placeholders defined in master page Windows SharePoint Services v3 embraces ASP.NET master pages Windows SharePoint Services sites such as Team Site built using a standard master page Quick and easy to change look and feel of entire site Editing master page can be done with SharePoint Site Designer

Windows SharePoint Services Master Page Implementation How do master pages work in Windows SharePoint Services? Each site page in Windows SharePoint Services site “points” to a master page Each Windows SharePoint Services site has a Master Page Gallery (MPG) Site metadata tracks site-wide master page Content pages (e.g., default.aspx) default to the per-site MPG Form pages (e.g., allitems.aspx) default to the per-site MPG Application pages hard-coded to master page in /_layouts

Editing a Master Page

Customizing Site Pages

Web Parts Web Parts are used to build portal-style applications Content designed to modular, consistent and easy to navigate Web Parts add in support for customization and personalization

Web Part History Microsoft Windows SharePoint Services 2.0 (WSS V2) Designed with its own Web Part infrastructure Windows SharePoint Services serializes/stores/retrieves personalization data ASP.NET 2.0 Designed with newer universal Web Part infrastructure Serializes/stores/retrieves personalization data More flexible and more extensible than Windows SharePoint Services ASP.NET 2.0 does not support Windows SharePoint Services v2 Web Parts Microsoft Windows SharePoint Services 2007 (WSS V3) Supports Windows SharePoint Services V2 style Web Parts Supports ASP.NET 2.0 style Web Parts (preferred)

ASP.NET Web Part Page Structure Web Part Page in ASP.NET 2.0 is designed with… One instance of WebPartManager class One or more Web Part Zones Optionally an Editor Zone and/or a Catalog Zone WebPartManager WebPartZone (Left)WebPartZone (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

ASP.NET 2.0 Web Parts Web Parts derive from WebPart base class All Web Part inherit common functionally using System; using System.Web.UI; using System.Web.UI.WebControls.WebParts; namespace LitwareWebParts { public class HelloWorldWebPart : WebPart { protected override void OnPreRender(EventArgs e) { this.Title = "Litware Project Revenue"; } protected override void RenderContents(HtmlTextWriter writer) { writer.Write("Hello, world"); }

Persistent Web Part Properties Web Parts support persistent properties Persistent personalization data tracked on per user basis Persistent customization data tracked once for all users Persistent properties can be modified by user through browser using System; using System.Web.UI; using System.Web.UI.WebControls.WebParts; namespace LitwareWebParts { protected string _ZipCode; [ Personalizable(), WebBrowsable(true), WebDisplayName("Zip Code"), WebDescription("used to track user zip code") ] public string ZipCode { get{ return _ZipCode; } set{ value = _ZipCode; } } //... }

Windows SharePoint Services Web Part Page Structure Web Part Page in Windows SharePoint Services is designed with… One instance of SPWebPartManager control One or more Windows SharePoint Services-specific WebPartZone controls Editor Zones and Catalog Zones supplied by WebPartPage base class SPWebPartManager WebPartZone (Left) WebPartZone (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

Overview of Developing Web Parts Create a new class library DLL project Create a class that inherits from ASP.NET Web Part class Override methods as required (e.g. RenderContents) Deploy Web Part DLL Compile DLL into \bin directory Configure DLL in web.config file SafeControl list Import Web Part into a Windows SharePoint Services site collection Add Web Part class to Web Part Gallery Add Web Part to zone on a Web Part Page

Web Part as a Safe Control Web Parts usually run on Web Part Pages Web Parts must be registered as Safe in web.config file You must add entry to web.config before testing a Web Part <SafeControl Assembly="AcmeWebParts" Namespace="AcmeWebParts" TypeName="*" Safe="True" />

Web Part Security Caveats Web Parts loaded from \bin subject to security restrictions Security restrictions controlled by Code Access Security (more later) You might want to turn off security during development You can choose between three different built-in levels OSVR_Minimal (default for Office Server) WSS_Minimum (default for WSS V3) WSS_MediumFull -->

The Web Part Gallery Scoped to the Site Collection level Contains list of Web Parts available to place on pages Web Parts declared as SafeControls can be auto-populated Click New button on toolbar Web Parts imported into gallery using.webpast files Click Upload button on toolbar

Creating Web Parts for Windows SharePoint Services v3

Web Part Types for Windows SharePoint Services "V3" Windows SharePoint Services V3 supports 3 different types of Web Parts Windows SharePoint Services V2 Runtime Windows SharePoint Services Web Parts Windows SharePoint Services V3 Runtime ASP.NET 2.0 Runtime ASP Web Parts Hybrid Web Parts Windows SharePoint Services Web Parts

Web Part Type in Windows SharePoint Services v3 ASP.NET Web Parts Web parts that inherit from ASP.NET WebPart Imported via.webpart files Preferred style for all new development Windows SharePoint Services v2-style Web parts Web parts that inherit from Windows SharePoint Services WebPart Imported via.dwp files Supported mainly for backwards compatibility Hybrid Web Parts Web parts that inherit from Windows SharePoint Services WebPart Takes advantage of new ASP.NET base class features Imported via.webpart files

Extensible Field Types Windows SharePoint Services V3 allows developer to create custom fields types Create custom UI for easier data input Perform server-side data validation Use advanced rendering techniques Examples SSN field RatingsAddress

Parts of a Custom Field Type Base type it is inherited from Defines the actual SQL storage Defines defaults (like rendering) Query/Sort/Filter will be dependant on the base type Field type XML definition (fldtypes.xml) Defines field properties Auto generates field UI to collect these properties CAML rendering (optional) Views are still CAML based

Field Customization UI { Auto-generated field property input form based on field PropertySchema

Summary ASP.NET Integration Page Templates vs. Page Instances Master Pages Web Parts New ASP.NET Web Part Model Cross-site query User controls Extensible Field Types

The 2007 Microsoft Office System Clients. Servers. Solutions. Install Beta 2 today! It’s in your attendee bag Learn more at the Office System TLC Demo Stations / Hands-on-Labs / Chalk-talks Get more information Get more information Lab Demo

Fill out a session evaluation on CommNet and Win an XBOX 360!

© 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.