Windows SharePoint Services Development Part 2: Web Parts - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Windows SharePoint Services Development Part 2: Web Parts

Description:

Knowledge Workers can edit ASPX pages. Thousands of Sites, Based on Template. No-code Pages ... Content pages (e.g., default.aspx) default to the per-site MPG ... – PowerPoint PPT presentation

Number of Views:100
Avg rating:3.0/5.0
Slides: 17
Provided by: mikeamm
Category:

less

Transcript and Presenter's Notes

Title: Windows SharePoint Services Development Part 2: Web Parts


1
Windows SharePoint Services Development Part
2Web Parts Master Pages
  • Petter Sørby
  • Masterminds
  • petter.sorby_at_masterminds.no

2
Agenda
  • Master Pages
  • Feature activation/deactivation
  • Web Parts
  • Simple ASP.NET
  • Connectable

3
ASP.NET Integration Overview
  • Better integration with ASP.NET
  • More ASP.NET features shine through
  • Still some conceptualdifferences SharePoint
    has
  • Template Model
  • Users can edit pages

Windows SharePoint Services v2
ASP.NET 1.1
ASP.NET 2.0
Windows SharePoint Services v3
4
SharePoint For ASP.NET Developers
  • Difference in Security Models
  • Knowledge Workers can edit ASPX pages
  • Thousands of Sites, Based on Template
  • No-code Pages
  • No code behind
  • SafeControls

Customized ASPX Pages
Content Database
_layouts Application ASPX Pages
Web Front End
Template ASPX Pages
5
User Interface Tools
  • Customize look and feel of a site
  • Customize Master Pages
  • End-user customizable web user interface
  • Build Web Parts
  • Build a custom application
  • Reusable UI Component
  • Build a Control
  • Application User Interface Pages
  • Build a _layouts Page
  • End-User Customizable Pages
  • Build a Contents Page
  • SharePoint List I/O
  • Forms

6
Master Page Concepts
  • One page (master) holds the chrome
  • Many pages point at the Master
  • Master Page defines Placeholders which can be
    overridden in child page

Master Page Chrome (default.master)
Content Page (default.aspx)
7
Master Pages Placeholders
8
Master Pages In WSS
  • Each content page in WSS points to a master
    page
  • Each WSS site has a Master Page Gallery (MPG)
  • Site metadata indicates where WSS looks for a
    master page
  • Content pages (e.g., default.aspx) default to the
    per-site MPG
  • Application pages default to the_layouts
    directory

9
Master Page Tokens
  • Two dynamic tokens
  • masterurl/default.master
  • Maps to spweb.MasterUrl
  • masterurl/custom.master
  • Maps to spweb.CustomMasterUrl
  • Two static tokens
  • sitecollection/default.master
  • site/default.master

10
SharePoint Page Layout
Content Pages - http//myserver/
Application Pages
spweb.MasterUrl
/_layouts/
application.master
/shared documents/
/
/_catalogs/masterpage/
.master
default.aspx
allitems.aspx
default.master
.aspx
.aspx
.master
/_layouts/
create.aspx
ghosting
Pages\
SiteTemplates\STS
Global\
.aspx
viewpage.aspx
default.master
default.aspx
File System - \.. \web server extensions\12\
11
Master Pages In SharePoint Sites
12
ASP.NET 2.0 Web Parts
13
Web Parts
  • End-user customizable controls
  • Personalization store
  • Web part framework now in ASP.NET
  • Support for assembly-based ASP.NET 2.0 parts
  • WSS Web Parts fully supported
  • System.Web.UI.WebControls.WebParts
  • Microsoft.SharePoint.WebPartPages.WebPart
  • Improved in V3 User interface for Web Parts

14
ASP.NET 2.0 Web Parts
15
ASP.NET 2.0 Web Part Connections
16
Integration Limitations
  • Cannot use ASP.NET 2.0 Web Part Pages Not
    directly compatible as-is
  • Pages must include SPWebPartZones and
    SPWebPartManager
  • This is done to automatically handle
    compatibility issues
  • No built-in support for treating .ASCX files
    (user controls) as Web Parts
  • You can use .ASCXs in pages, though
  • Wrappers for .ASCXs can and will be created
Write a Comment
User Comments (0)
About PowerShow.com