SlideShare a Scribd company logo
SHAREPOINT PROGRAMMING
PART1: BASIC SHAREPOINT PROGRAMMING USING VSEWSS V1.3




                               Nguyen Ba Quang
                               basquang@hotmail.com
                               http://basquang.spaces.live.com
Agenda

 SharePoint 2007 (MOSS) overview
 Programming in SharePoint
Office SharePoint Server 2007:
Key Investments
       Server-based spreadsheets plus                                          Next generation e-mail, project
       BI portals built on SQL Server                                           management, workflow, blog
       Analysis Services                                                                                  and
                                                                                                 wiki support
                                         Business
                                        Intelligence        Collaboration



  Server-based forms and                           Windows                                      Enhanced SharePoint Portal
workflow with smart client     Business           SharePoint                  Portal            aggregation and personalization
   and browser interfaces
                               Processes           Services



                                          Content
                                        Management                 Search
     Integrated document, records and                                                         Great relevance
     Web content management                                                              with rich people and
                                                                                         business data search
                                            Unified ASP.NET 2.0 workspace
                                             foundation for scalability and
                                                     extensibility
Collaboration
Discussions
Calendars
                      Collaboration
Document libraries
Contacts
Blogs
Wikis
Content Management
Document management
Records management
Web content management
                            Content
                          Management
Search
Revised relevance algorithms
Content sources
People searching
Content scopes                 Search
Business Process Management
Support for XML standards
Browser-based forms
Design-once development model    Business
                                  Process
                                 Management
Form-Import wizard
Multiple form views
Business Intelligence
Web access to published spreadsheets
Programmatic access to published spreadsheets
Business Data Catalog
Dashboards                              Business
                                        Intelligence
Report Center Web sites
Programming in SharePoint

 Introduction to SharePoint Developer tool
  V9.0 (VSeWSS)
 Programming Tasks
   SharePoint Object Model Programming
   CAML query and LINQ to SharePoint
   Hello VSeWSS with Simple WebPart
   Features
   Application Pages and Site Pages
   Lists and Event Handler
SharePoint Developer tool

 Download from Microsoft
    website
   Support for VS 2008
   New templates and
    deployment tools
   Easy to development
   Easy to deployment
SharePoint Object Model

                Managed code OM on
                 the server
                Accessible via
                 ASP.NET or any
                 process
                Implemented in C#
                Exposes almost of all
                 of the data stored in
                 WSS
SharePoint OM Demo

 Simple Console Application
   Create, Update, Read, Delete List Item
 Simple Web Application
CAML Query

 Collaborative Application Markup Language
 XML based query language
CAML can be used…

 Provide schema definition to the Web site
  provisioning system about how the site looks and
  acts.
 Define views and forms for data and page rendering
  or execution.
 Act as a rendering language that performs functions
  in the DLL like pulling a value from a particular field.
 Provide batch functionality for posting multiple
  commands to the server using protocol.
CAML Demo

 Using CAML query building tool
 Query SharePoint data using CAML query
LINQ to SharePoint

 LINQ to SharePoint now support from
  Microsoft
 Using LINQ syntax
 Query SharePoint data without write any
  makeup code
 Reduce line of code
LINQ to SharePoint Demo
Web Parts
 Web Parts are used to build portal-style Apps
     Content designed to modular, consistent and easy to
      navigate
     Web Parts add in support for customization and
      personalization
WSS 3.0 Built-in Web Parts
 Content Editor Web Part
 Data View Web Part
 List View Web Part
 Image Web Part
 Members Web Part
 Page Viewer Web Part
 …
Web Part Fundamentals
 Inherits from
  System.Web.UI.WebControls.WebParts
 Special type of Web control
 Deployable inside of a Web Part Zone control
 Render inside of chrome
ASP.NET WebPart 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
WebPart Demo using VSeWSS
Features Overview
 Features?
   A means to extend the functionality of MOSS 2007
   A feature can include various elements
     Event handlers, custom Menu items…
   Encapsulate WSS functionality for ease of distribution and deployment

 Feature scope
   Farm, Web Application, Site (site collection),Web (web site)

 Add or remove a feature
   Install/uninstall
   Activate/deactivate
   The 04 corresponding events can be trapped and handled
Element Type                        Scope             Description

Content Type                        Site              Contains a schema definition you can reuse and apply to multiple list definitions.

                                                      Content type binding enables you to provision a content type on a list defined in the onet.xml schema.
Content Type Binding                Site
                                                      Lists defined in the onet.xml schema cannot be modified directly.

                                    Farm,             A delegate control contains a registration for a well-known control installed on a Web page. This lets
Control                             WebApplication,   you replace existing controls, such as the Windows SharePoint Services search control, with another
                                    Site, Web         control.

                                                      You can define the following kinds of custom actions:
                                    Farm,             • Content type links for the content type settings page
Custom Action                       WebApplication,   • Drop-down menu actions for the drop-down menu that appears for an item
                                    Site, Web         • Form toolbar buttons for New, Edit, or Display form toolbars.
                                                      • Site Settings link for the Site Settings page.

                                    Farm,
Custom Action Group                 WebApplication,   Defines a group of custom actions.
                                    Site, Web

                                                      Contains the definition of a document converter. A document converter is a custom executable file that
Document Converter                  WebApplication
                                                      takes a document of one file type, and generates a copy of that file in another file type.

                                    Farm,
Feature/Site Template Association   WebApplication,   Binds a feature to a site definition or template so that created sites are provisioned with the feature.
                                    Site

Field                               Site              Contains a field definition that can be reused among multiple lists.

                                    Farm,
Hide Custom Action                  WebApplication,   Hides a custom action that has been added through another custom action.
                                    Site, Web

List Instance                       Site, Web         Provisions a SharePoint site with a specific list of data.

List Template                       Site, Web         Contains a list definition or template, which defines a list that can be provisioned in a SharePoint site.

Module                              Site, Web         Contains a set of files with which to provision sites.

Receiver                            Web               Contains an item event receiver registration.

Workflow                            Site              Contains the definition for a workflow in a list.
Features Overview
 A feature has a subfolder within the Features
  setup directory
   Feature.XML:
     defines the base properties of the Feature
     lists elements bound to it
   XML element manifest
   Supporting files (.aspx, .htm, .xsn, .resx, .dll…)
 Feature.XML
 Element manifest XML file(s)
Features Demo

 Create Custom Action
Application/Site Pages

 Application Pages
     Like settings.aspx
     Do not support customization
     Can access from any site
     Always compiled into a DLL
     Place under _layouts folder
 Site Pages
   Like default.aspx, page.aspx…
   Support customization
   Content customized store in database
Application/Site Pages Demo

 Application Page using ASP.Net 3.5
 Site Pages
SharePoint List

 Collaborative data in SharePoint
 Defined based on an XML-defined schema
 Heart of the core WSS architecture
List Type           Description
Document library Used for collaborating on documents with support for versioning, check-in and check-out, and workflow.
                 Includes support for deep integration with Microsoft Office.


Form library        Used to store XML documents and forms for use with Microsoft Office InfoPath.
Wiki page library   Used for collaborative Web pages based on wiki pages, which are dynamically generated and
                    collaboratively edited Web pages.
Picture library     A specialized document library enhanced for use with pictures. Includes support for slide shows,
                    thumbnails, and simple editing through Microsoft Office Picture Manager.


Announcements       Used for simple sharing of timely news with support for expiration.
Contacts            A list for tracking people and contact information, with support for integration into Microsoft Office
                    Outlook and other WSS-compatible contacts applications.

Discussions         A simple list for threaded discussions with support for approval and managing discussion threads.

Links               A list for managing hyperlinks.
Calendar            A list for tracking upcoming events and deadlines. Includes support for integration and synchronization
                    with Office Outlook.
Tasks               A list of activity-based items that can integrate with workflow.
Project tasks       An enhanced tasks list with support for Gannt chart rendering and integration with Microsoft Office
                    Project.
Issue tracking      A list for tracking issues and resolution, with support for prioritization.
Custom list         An empty list definition for extending with custom columns, or created using Microsoft Office Excel
                    spreadsheets.
List Definition Schema

 Define content types
 Define Fields
 Define View Fields
List Definition Demo
Event Receivers

 Developer-extensibility mechanism to add
  behaviors to lists, list items
 Typically used:
     Perform data validation.
     Ensure data integrity
     Kick off custom business processing
 Two categories
     Before events: fires before an action has been completed
     After events: fires after an action has been completed
Event Receiver Demo
References

 http://sharepoint.microsoft.com/Pages/Default.aspx
 http://www.u2u.be/res/Tools/CamlQueryBuilder.aspx
 MS Press: Inside Microsoft® Windows® SharePoint®
  Services 3.0
Thank You

More Related Content

What's hot (20)

PPTX
Core SharePoint 2013 Concepts
Learning SharePoint
 
PDF
Introduction to SharePoint 2013 WCM-DM-ECM for Business Users and Developers
Netwoven Inc.
 
PPTX
SharePoint 2013 features overview
Qasim Mehmood MBA-PM
 
PPTX
Comparison of SharePoint 2010 and SharePoint 2013
Ian Woodgate
 
PPTX
What's new in SharePoint Server 2013 (End user - Admin – Developer)
Mahmoud Hamed Mahmoud
 
PPTX
Introduction to SharePoint 2013 by Michael Blumenthal
Michael Blumenthal (Microsoft MVP)
 
PDF
SharePoint 101
Dux Raymond Sy
 
PPTX
Sharepoint 2010 overview - what it is and what it can do
Faisal Masood
 
PPTX
Share point 2010 overview
MJ Ferdous
 
PDF
SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...
Nik Patel
 
PPTX
Driving End User Adoption in SharePoint 2013 & 2010 - EPC Group
EPC Group
 
PPSX
Share point 2010 Fundamentals
balraj_s
 
PPTX
SharePoint 2010 Basics for newbies
Sachchin Annam
 
PPSX
Share Point Presentation Introduction To Sharepoint
rpeterson1
 
PDF
Access Services in SharePoint 2010 - All You Need to Know
Nik Patel
 
PPTX
Concurrency SharePoint Summit 2015
Drew Madelung
 
PDF
Discover SharePoint 2013
Benjamin Niaulin
 
PPSX
Microsoft SharePoint 2010 Overview Session 1
Sourav Nayyar
 
PPTX
Introduction To SharePoint 2010
Rishu Mehra
 
PPSX
Basics of SharePoint
samirsangli
 
Core SharePoint 2013 Concepts
Learning SharePoint
 
Introduction to SharePoint 2013 WCM-DM-ECM for Business Users and Developers
Netwoven Inc.
 
SharePoint 2013 features overview
Qasim Mehmood MBA-PM
 
Comparison of SharePoint 2010 and SharePoint 2013
Ian Woodgate
 
What's new in SharePoint Server 2013 (End user - Admin – Developer)
Mahmoud Hamed Mahmoud
 
Introduction to SharePoint 2013 by Michael Blumenthal
Michael Blumenthal (Microsoft MVP)
 
SharePoint 101
Dux Raymond Sy
 
Sharepoint 2010 overview - what it is and what it can do
Faisal Masood
 
Share point 2010 overview
MJ Ferdous
 
SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...
Nik Patel
 
Driving End User Adoption in SharePoint 2013 & 2010 - EPC Group
EPC Group
 
Share point 2010 Fundamentals
balraj_s
 
SharePoint 2010 Basics for newbies
Sachchin Annam
 
Share Point Presentation Introduction To Sharepoint
rpeterson1
 
Access Services in SharePoint 2010 - All You Need to Know
Nik Patel
 
Concurrency SharePoint Summit 2015
Drew Madelung
 
Discover SharePoint 2013
Benjamin Niaulin
 
Microsoft SharePoint 2010 Overview Session 1
Sourav Nayyar
 
Introduction To SharePoint 2010
Rishu Mehra
 
Basics of SharePoint
samirsangli
 

Viewers also liked (20)

PPTX
Using SPMetal for faster SharePoint development
Pranav Sharma
 
PPTX
Biwug 25092012 sp2013_itpro_hans_jaspers
BIWUG
 
PPTX
How To Successfully Deliver Your SharePoint Project In Ten Easy Steps - Symon...
SPC Adriatics
 
PPTX
Karine bosch andy-van_steenbergen-caml-spsbe12
BIWUG
 
PDF
Best practices with development of enterprise-scale SharePoint solutions - Pa...
SPC Adriatics
 
PPTX
Best Practices for SharePoint Development Customization
Ricardo Wilkins
 
PDF
Share point 2013 coding standards and best practices 1.0
LiquidHub
 
PPTX
Best Practices to SharePoint Physical and Information Architecture
Joel Oleson
 
PPTX
Best Practice SharePoint Architecture
Michael Noel
 
PDF
Sample RightLumen Guide
adambcarney
 
PPTX
Transforming Theater Fundraising with BiddingForGood
Perry Allison
 
PDF
39808 sum orientation2011_sav_graduate_ppt
TreyReckling
 
ODP
A REFORMA E A CONTRARREFORMA
Noelia-presentaciones
 
PPTX
SharePoint 2010 Business Intelligence
Quang Nguyễn Bá
 
PPT
Apresentacao Marcus Aurélius
glauber_alien
 
PDF
Contributionmargin
Statseeker
 
PDF
Concepciones sobre evolucion
German Chaves
 
PDF
Gaining New Insights into Usage Log Data
SAS Asia Pacific
 
PPTX
SharePoint Web part programming
Quang Nguyễn Bá
 
PPTX
Introduction to Microsoft SQL Server 2008 R2 Analysis Service
Quang Nguyễn Bá
 
Using SPMetal for faster SharePoint development
Pranav Sharma
 
Biwug 25092012 sp2013_itpro_hans_jaspers
BIWUG
 
How To Successfully Deliver Your SharePoint Project In Ten Easy Steps - Symon...
SPC Adriatics
 
Karine bosch andy-van_steenbergen-caml-spsbe12
BIWUG
 
Best practices with development of enterprise-scale SharePoint solutions - Pa...
SPC Adriatics
 
Best Practices for SharePoint Development Customization
Ricardo Wilkins
 
Share point 2013 coding standards and best practices 1.0
LiquidHub
 
Best Practices to SharePoint Physical and Information Architecture
Joel Oleson
 
Best Practice SharePoint Architecture
Michael Noel
 
Sample RightLumen Guide
adambcarney
 
Transforming Theater Fundraising with BiddingForGood
Perry Allison
 
39808 sum orientation2011_sav_graduate_ppt
TreyReckling
 
A REFORMA E A CONTRARREFORMA
Noelia-presentaciones
 
SharePoint 2010 Business Intelligence
Quang Nguyễn Bá
 
Apresentacao Marcus Aurélius
glauber_alien
 
Contributionmargin
Statseeker
 
Concepciones sobre evolucion
German Chaves
 
Gaining New Insights into Usage Log Data
SAS Asia Pacific
 
SharePoint Web part programming
Quang Nguyễn Bá
 
Introduction to Microsoft SQL Server 2008 R2 Analysis Service
Quang Nguyễn Bá
 
Ad

Similar to SharePoint Programming Basic (20)

PPTX
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
Mark Rackley
 
PPTX
SPSDenver - Wrapping Your Head Around the SharePoint Beast
Mark Rackley
 
PPS
SharePoint 2010 Introduction
Vishal Gupta
 
PPTX
KMWorld SharePoint 2010-Admin 101
Chris McNulty
 
PPTX
Hello SharePoint 2007!!!
Marwan Tarek
 
PDF
Sharepoint 2010 Training
Deccansoft
 
PPT
Sharepoint developement tools(webparts+worflows) EBizSoft
Shakir Majeed Khan
 
PPTX
Stug -Sir Syed University On Location-Live Event
Shakir Majeed Khan
 
PPSX
SharePoint with Real Life
Vishal Gupta
 
PDF
(28.04) MOSSCA Invita - Bienvenidos a la casa de Sharepoint - Visión técnica
Microsoft Argentina y Uruguay [Official Space]
 
DOC
Sharepoint 2010 content
Smartittrainings
 
PPTX
SharePoint Design & Development
Jonathan Schultz
 
PPTX
EPC Group - Comparing SharePoint 2010 Versions and Functionallity - SharePoin...
EPC Group
 
PDF
AD107 Microsoft SharePoint meets IBM Lotus Domino
Stephan H. Wissel
 
PDF
Microsoft SharePoint Server 2007
ITDogadjaji.com
 
PPTX
SharePoint 2010 and Changing Business Needs-MAJU 2011
Shakir Majeed Khan
 
PDF
SharePoint 2010 101 @ SPSVB
Dux Raymond Sy
 
PDF
Stug-paf kiet 28 january live and on location-Enterprise Content Management
Shakir Majeed Khan
 
PPTX
SharePoint 2010 Training Session 1
Usman Zafar Malik
 
PPTX
Basis soft expro
MJ Ferdous
 
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
Mark Rackley
 
SPSDenver - Wrapping Your Head Around the SharePoint Beast
Mark Rackley
 
SharePoint 2010 Introduction
Vishal Gupta
 
KMWorld SharePoint 2010-Admin 101
Chris McNulty
 
Hello SharePoint 2007!!!
Marwan Tarek
 
Sharepoint 2010 Training
Deccansoft
 
Sharepoint developement tools(webparts+worflows) EBizSoft
Shakir Majeed Khan
 
Stug -Sir Syed University On Location-Live Event
Shakir Majeed Khan
 
SharePoint with Real Life
Vishal Gupta
 
(28.04) MOSSCA Invita - Bienvenidos a la casa de Sharepoint - Visión técnica
Microsoft Argentina y Uruguay [Official Space]
 
Sharepoint 2010 content
Smartittrainings
 
SharePoint Design & Development
Jonathan Schultz
 
EPC Group - Comparing SharePoint 2010 Versions and Functionallity - SharePoin...
EPC Group
 
AD107 Microsoft SharePoint meets IBM Lotus Domino
Stephan H. Wissel
 
Microsoft SharePoint Server 2007
ITDogadjaji.com
 
SharePoint 2010 and Changing Business Needs-MAJU 2011
Shakir Majeed Khan
 
SharePoint 2010 101 @ SPSVB
Dux Raymond Sy
 
Stug-paf kiet 28 january live and on location-Enterprise Content Management
Shakir Majeed Khan
 
SharePoint 2010 Training Session 1
Usman Zafar Malik
 
Basis soft expro
MJ Ferdous
 
Ad

More from Quang Nguyễn Bá (18)

PPTX
Lesson 09 Resources and Settings in WPF
Quang Nguyễn Bá
 
PPTX
Lesson 08 Documents and Printings in WPF
Quang Nguyễn Bá
 
PPTX
Lesson 07 Actions and Commands in WPF
Quang Nguyễn Bá
 
PPTX
Lesson 06 Styles and Templates in WPF
Quang Nguyễn Bá
 
PPTX
Lesson 05 Data Binding in WPF
Quang Nguyễn Bá
 
PPTX
Lesson 04 WPF Controls
Quang Nguyễn Bá
 
PPTX
Lesson 03 Layouts in WPF
Quang Nguyễn Bá
 
PPTX
Lesson 02 Introduction to XAML
Quang Nguyễn Bá
 
PPTX
Lesson 01 Introduction to WPF
Quang Nguyễn Bá
 
PPTX
Business intelligence
Quang Nguyễn Bá
 
PPTX
TDD - Test Driven Dvelopment | Test First Design
Quang Nguyễn Bá
 
PPTX
Scrum sử dụng Team Foundation Server 2012
Quang Nguyễn Bá
 
PPTX
Introduction to Microsoft SQL Server 2008 R2 Integration Services
Quang Nguyễn Bá
 
PPTX
Introduction to Business Intelligence in Microsoft SQL Server 2008 R2
Quang Nguyễn Bá
 
PPTX
Office 2010 Programming
Quang Nguyễn Bá
 
PPTX
Giới thiệu WCF
Quang Nguyễn Bá
 
PPTX
MOSS 2007 Overview
Quang Nguyễn Bá
 
PPTX
Programming SharePoint 2010 with Visual Studio 2010
Quang Nguyễn Bá
 
Lesson 09 Resources and Settings in WPF
Quang Nguyễn Bá
 
Lesson 08 Documents and Printings in WPF
Quang Nguyễn Bá
 
Lesson 07 Actions and Commands in WPF
Quang Nguyễn Bá
 
Lesson 06 Styles and Templates in WPF
Quang Nguyễn Bá
 
Lesson 05 Data Binding in WPF
Quang Nguyễn Bá
 
Lesson 04 WPF Controls
Quang Nguyễn Bá
 
Lesson 03 Layouts in WPF
Quang Nguyễn Bá
 
Lesson 02 Introduction to XAML
Quang Nguyễn Bá
 
Lesson 01 Introduction to WPF
Quang Nguyễn Bá
 
Business intelligence
Quang Nguyễn Bá
 
TDD - Test Driven Dvelopment | Test First Design
Quang Nguyễn Bá
 
Scrum sử dụng Team Foundation Server 2012
Quang Nguyễn Bá
 
Introduction to Microsoft SQL Server 2008 R2 Integration Services
Quang Nguyễn Bá
 
Introduction to Business Intelligence in Microsoft SQL Server 2008 R2
Quang Nguyễn Bá
 
Office 2010 Programming
Quang Nguyễn Bá
 
Giới thiệu WCF
Quang Nguyễn Bá
 
MOSS 2007 Overview
Quang Nguyễn Bá
 
Programming SharePoint 2010 with Visual Studio 2010
Quang Nguyễn Bá
 

Recently uploaded (20)

PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 

SharePoint Programming Basic

  • 1. SHAREPOINT PROGRAMMING PART1: BASIC SHAREPOINT PROGRAMMING USING VSEWSS V1.3 Nguyen Ba Quang [email protected] http://basquang.spaces.live.com
  • 2. Agenda  SharePoint 2007 (MOSS) overview  Programming in SharePoint
  • 3. Office SharePoint Server 2007: Key Investments Server-based spreadsheets plus Next generation e-mail, project BI portals built on SQL Server management, workflow, blog Analysis Services and wiki support Business Intelligence Collaboration Server-based forms and Windows Enhanced SharePoint Portal workflow with smart client Business SharePoint Portal aggregation and personalization and browser interfaces Processes Services Content Management Search Integrated document, records and Great relevance Web content management with rich people and business data search Unified ASP.NET 2.0 workspace foundation for scalability and extensibility
  • 4. Collaboration Discussions Calendars Collaboration Document libraries Contacts Blogs Wikis
  • 5. Content Management Document management Records management Web content management Content Management
  • 6. Search Revised relevance algorithms Content sources People searching Content scopes Search
  • 7. Business Process Management Support for XML standards Browser-based forms Design-once development model Business Process Management Form-Import wizard Multiple form views
  • 8. Business Intelligence Web access to published spreadsheets Programmatic access to published spreadsheets Business Data Catalog Dashboards Business Intelligence Report Center Web sites
  • 9. Programming in SharePoint  Introduction to SharePoint Developer tool V9.0 (VSeWSS)  Programming Tasks  SharePoint Object Model Programming  CAML query and LINQ to SharePoint  Hello VSeWSS with Simple WebPart  Features  Application Pages and Site Pages  Lists and Event Handler
  • 10. SharePoint Developer tool  Download from Microsoft website  Support for VS 2008  New templates and deployment tools  Easy to development  Easy to deployment
  • 11. SharePoint Object Model  Managed code OM on the server  Accessible via ASP.NET or any process  Implemented in C#  Exposes almost of all of the data stored in WSS
  • 12. SharePoint OM Demo  Simple Console Application  Create, Update, Read, Delete List Item  Simple Web Application
  • 13. CAML Query  Collaborative Application Markup Language  XML based query language
  • 14. CAML can be used…  Provide schema definition to the Web site provisioning system about how the site looks and acts.  Define views and forms for data and page rendering or execution.  Act as a rendering language that performs functions in the DLL like pulling a value from a particular field.  Provide batch functionality for posting multiple commands to the server using protocol.
  • 15. CAML Demo  Using CAML query building tool  Query SharePoint data using CAML query
  • 16. LINQ to SharePoint  LINQ to SharePoint now support from Microsoft  Using LINQ syntax  Query SharePoint data without write any makeup code  Reduce line of code
  • 18. Web Parts  Web Parts are used to build portal-style Apps  Content designed to modular, consistent and easy to navigate  Web Parts add in support for customization and personalization
  • 19. WSS 3.0 Built-in Web Parts  Content Editor Web Part  Data View Web Part  List View Web Part  Image Web Part  Members Web Part  Page Viewer Web Part  …
  • 20. Web Part Fundamentals  Inherits from System.Web.UI.WebControls.WebParts  Special type of Web control  Deployable inside of a Web Part Zone control  Render inside of chrome
  • 21. ASP.NET WebPart 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
  • 23. Features Overview  Features?  A means to extend the functionality of MOSS 2007  A feature can include various elements  Event handlers, custom Menu items…  Encapsulate WSS functionality for ease of distribution and deployment  Feature scope  Farm, Web Application, Site (site collection),Web (web site)  Add or remove a feature  Install/uninstall  Activate/deactivate  The 04 corresponding events can be trapped and handled
  • 24. Element Type Scope Description Content Type Site Contains a schema definition you can reuse and apply to multiple list definitions. Content type binding enables you to provision a content type on a list defined in the onet.xml schema. Content Type Binding Site Lists defined in the onet.xml schema cannot be modified directly. Farm, A delegate control contains a registration for a well-known control installed on a Web page. This lets Control WebApplication, you replace existing controls, such as the Windows SharePoint Services search control, with another Site, Web control. You can define the following kinds of custom actions: Farm, • Content type links for the content type settings page Custom Action WebApplication, • Drop-down menu actions for the drop-down menu that appears for an item Site, Web • Form toolbar buttons for New, Edit, or Display form toolbars. • Site Settings link for the Site Settings page. Farm, Custom Action Group WebApplication, Defines a group of custom actions. Site, Web Contains the definition of a document converter. A document converter is a custom executable file that Document Converter WebApplication takes a document of one file type, and generates a copy of that file in another file type. Farm, Feature/Site Template Association WebApplication, Binds a feature to a site definition or template so that created sites are provisioned with the feature. Site Field Site Contains a field definition that can be reused among multiple lists. Farm, Hide Custom Action WebApplication, Hides a custom action that has been added through another custom action. Site, Web List Instance Site, Web Provisions a SharePoint site with a specific list of data. List Template Site, Web Contains a list definition or template, which defines a list that can be provisioned in a SharePoint site. Module Site, Web Contains a set of files with which to provision sites. Receiver Web Contains an item event receiver registration. Workflow Site Contains the definition for a workflow in a list.
  • 25. Features Overview  A feature has a subfolder within the Features setup directory  Feature.XML:  defines the base properties of the Feature  lists elements bound to it  XML element manifest  Supporting files (.aspx, .htm, .xsn, .resx, .dll…)  Feature.XML  Element manifest XML file(s)
  • 26. Features Demo  Create Custom Action
  • 27. Application/Site Pages  Application Pages  Like settings.aspx  Do not support customization  Can access from any site  Always compiled into a DLL  Place under _layouts folder  Site Pages  Like default.aspx, page.aspx…  Support customization  Content customized store in database
  • 28. Application/Site Pages Demo  Application Page using ASP.Net 3.5  Site Pages
  • 29. SharePoint List  Collaborative data in SharePoint  Defined based on an XML-defined schema  Heart of the core WSS architecture
  • 30. List Type Description Document library Used for collaborating on documents with support for versioning, check-in and check-out, and workflow. Includes support for deep integration with Microsoft Office. Form library Used to store XML documents and forms for use with Microsoft Office InfoPath. Wiki page library Used for collaborative Web pages based on wiki pages, which are dynamically generated and collaboratively edited Web pages. Picture library A specialized document library enhanced for use with pictures. Includes support for slide shows, thumbnails, and simple editing through Microsoft Office Picture Manager. Announcements Used for simple sharing of timely news with support for expiration. Contacts A list for tracking people and contact information, with support for integration into Microsoft Office Outlook and other WSS-compatible contacts applications. Discussions A simple list for threaded discussions with support for approval and managing discussion threads. Links A list for managing hyperlinks. Calendar A list for tracking upcoming events and deadlines. Includes support for integration and synchronization with Office Outlook. Tasks A list of activity-based items that can integrate with workflow. Project tasks An enhanced tasks list with support for Gannt chart rendering and integration with Microsoft Office Project. Issue tracking A list for tracking issues and resolution, with support for prioritization. Custom list An empty list definition for extending with custom columns, or created using Microsoft Office Excel spreadsheets.
  • 31. List Definition Schema  Define content types  Define Fields  Define View Fields
  • 33. Event Receivers  Developer-extensibility mechanism to add behaviors to lists, list items  Typically used:  Perform data validation.  Ensure data integrity  Kick off custom business processing  Two categories  Before events: fires before an action has been completed  After events: fires after an action has been completed

Editor's Notes

  • #21: Based on a WebPartManagerTracks which Web Parts have been added to each particular zoneStores and retrieves data about how each Web Part has been customized and personalizedThe Web Part chrome is responsible for rendering common properties and styles as well as menu and administration user interface elements