- Podcast
- Research
- Search
- Security
- Technology
- Video
- AIM
- Alfresco
- Collaboration
- ECM
- ESX
- Hyper-V
- IE8
- Internet Explorer
- Iomega
- Linux
- MIX08
- Microsoft
- NAS
- Nokia
- REV
- S60
- SaaS
- Sharepoint
- Silverlight
- Sony Ericsson
- VMware
- Windows Live
- YouTube
- Advertising
- Backup
- Beta Test
- Blogs
- Convergence
- Display
- Enterprise
- Humans
- Instant Messaging
- Multimedia
- Networking
- Open Source
- Phishing
Working with Web Parts in SharePoint
Web Parts are server controls that can be used to both customize and personalize your site's pages. They can add custom functionality and make your site unique; however, you can't build a custom Web Part directly in SharePoint. To create customized Web Parts, you need either a separate SharePoint designer tool or Visual Studio and ASP.NET. This article explains how to develop custom Web Parts and then deploy them to SharePoint.
Prerequisites
To work through the example in this article, you should have the following items installed:
- Microsoft Visual Studio 2005, 2008, or higher
- Windows SharePoint Services 3.0
- SmartTemplates for Visual Studio
What Are Web Parts?
Web Parts are the basic building blocks of SharePoint Web Part pages. Web Part Pages are actually special pages where you can house a Web Part. Note that a Web Part Page can contain one or more Web Parts. You can add Web Parts to areas called Web Part zones inside a Web Part page.
Each Web Part should contain a modular unit of information. Functionally, Web Parts let you present information in an organized, meaningful, convenient, and consistent manner.
Whats Inside?
A typical Web Part contains three main parts:
- A title bar that holds the Web Part's title or heading
- A menu that you can use to minimize or close the Web Part
- The content or body that displays information
Basic Features
By default, Web Parts support several basic features, including:
- Drag-and-drop
- Minimize, restore, and close operations
- Simple navigation and a consistent UI
- Support for customization and personalization
Display Modes
A Web Part can have one of the following display modes:
- BrowseDisplayMode: This is the default display mode.
- DesignDisplayMode: This display mode is used to change the layout of Web pages that contain Web Part controls.
- EditDisplayMode: This display mode is used to allow the end users of the Web Part to edit server controls.
- ConnectDisplayMode: This is used to manage connectivity among Web Part controls.
- CatalogDisplayMode: This display mode is used to add controls from a catalog of controls.
Types of Web Parts
Windows SharePoint Services contains some default Web Part types, such as:
- Default Web Parts: These are available by default in any site you create.
- Preconfigured Web Parts: These are built into the WSS team site template and are available for you to use whenever you create a new team site.
You can also build and deploy custom Web Parts, as shown in the rest of this article.
Most Popular Stories
- 1 Building SharePoint Suggestion Boxes and Soliciting Anonymous Feedback
- 2 Moving a Document to the SharePoint 2010 Records Center
- 3 Solve Item-Level Permission Performance Problems in SharePoint
- 4 Developing SharePoint Solutions in Visual Studio Using WSPBuilder
- 5 Using the Event Handler in SharePoint 2010
- 6 Prepare Your SharePoint Data Carefully, Ediscovery Experts Warn
- 7 Design a Form to Collect Customer Information Using InfoPath and SharePoint 2010

Extending database skills is fast and easy with new features and this e-kit. Learn how and start taking advantage of easier DB2 administration features today.