SharePoint 2003 Web Parts - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

SharePoint 2003 Web Parts

Description:

Web Part Gallery. Web Part Page: web parts already added to the page (open & closed) Site Name : gallery of web parts maintained by site Admin. ... – PowerPoint PPT presentation

Number of Views:78
Avg rating:3.0/5.0
Slides: 13
Provided by: Ber72
Category:

less

Transcript and Presenter's Notes

Title: SharePoint 2003 Web Parts


1
SharePoint 2003 Web Parts
  • By
  • Sam Nasr
  • June 27, 2006

www.ClevelandDotNet.info
2
Agenda
  • Introduction
  • Web Parts Presentation
  • QA (Open)
  • Feedback raffle

3
What is a Web Part?
  • A modular portion of an ASP.Net web page.
  • Visual content consists of
  • Title bar
  • Frame
  • Content
  • Provides custom functionality to SharePoint sites
    and portals.
  • Display Outlook contacts within a frame.
  • Display graphical data within a portion of a
    page.
  • Based on .Net framework and ASP.NET.
  • Integrate with Web Services, Office, and BizTalk
    Server.
  • Web Parts are composed of
  • Description file (.DWP - XML based)
  • Assembly (.DLL)

4
Web Parts
  • Static or Dynamic Web Parts
  • Connectable Web Parts (i.e. Customer to Orders)
  • Personal or Shared Views
  • Developed using FrontPage or Visual Studio

5
Web Part Evolution
  • v1.0 VBScript or JavaScript for SharePoint 2001.
  • v2.0 Integrated .Net 1.1 functionality for
    SharePoint 2003.
  • v3.0 Built on ASP.Net 2.0 for SharePoint 2007
    and ASP.Net 2.0.

6
Creating a Web Part
  • Download Web Part Template.
  • http//www.microsoft.com/downloads/details.aspx?Fa
    milyIdCAC3E0D2-BEC1-494C-A74E-75936B88E3B5displa
    ylangen
  • Create a Web Part Project in VS
  • RenderWebPart() is the entry point of the code.

7
Adding a Web Part
  • Add a ltSafeControlgt element to the
    c\Inetpub\wwwroot\web.config
  • Import the .DWP file
  • Move the web part to a web part zone (or using
    Add button).

8
Web Part Gallery
  • Web Part Page web parts already added to the
    page (open closed)
  • ltSite Namegt gallery of web parts maintained by
    site Admin.
  • Virtual Server web parts added to the root
    directory of the virtual server (i.e. ltlocal
    drivegt \inetpub\wwwroot\wpcatalog)
  • Online web parts available from Microsoft.com

9
Security
  • Role Based
  • Readers No WP modification rights
  • Contributors can modify in Personal View only.
  • Administrators Full rights
  • Server Based ltSafeControlgt in web.config
  • Web Part Based Code Access Security (CAS)
  • Increasing the Virtual Servers trust level
  • Installing the Web Part in the GAC
  • Creating a custom policy file for the Web Part
    Assembly

10
Debugging Web Parts
  • Enable Tracing
  • Display messages to UI
  • Manually attach debugger to w3wp.exe

11
Debugging Tips
  • Re-opening a closed web Part
  • Re-insert from Web Gallery
  • FrontPage
  • Append ?Contents1 to URL to view contents
  • Append PageViewShared or PageViewPersonal

12
Resources
  • Web Part Template for Visual Studio
  • http//www.microsoft.com/downloads/details.aspx?Fa
    milyIdCAC3E0D2-BEC1-494C-A74E-75936B88E3B5displa
    ylangen
  • Son of Smart Part
  • http//www.gotdotnet.com/workspaces/workspace.aspx
    ?id6cfaabc8-db4d-41c3-8a88-3f974a7d0abe
  • The Rational Guide to Building SharePoint Web
    Parts
  • http//www.amazon.com/gp/product/0972688862/qid11
    51515832/sr1-1/refsr_1_1/102-1550737-3506543?sb
    ooksvglancen283155
  • Microsoft SharePoint Products and Technologies
    Resource Kit
  • http//www.bookpool.com/ss?qssharepointresource
    kitx0y0
Write a Comment
User Comments (0)
About PowerShow.com