This topic explains the
article about SharePoint 3. In case, you are looking for SharePoint 3, you can
always consider ASPHostCentral.com
and you can start from our lowest Standard Plan @4.99/month to host your SharePoint site.
Overview
SharePoint web parts
provide support to create both customized and personalized user interfaces.
Customization in this case means that the changes for the web part are seen by
all site users. Individual users can personalize their web pages further by
adding, moving and removing web parts in their view of the web page. In this
case, personalization means that the changes made to the web parts are only
visible to the user who made the change.
When developing custom
web parts, you can extend the Windows SharePoint site's functionality in an
easy and powerful way.
Web parts were first
introduced in Windows SharePoint Services (WSS) V2.0. In Windows SharePoint
Services 3.0 they are no longer just a SharePoint feature, because the ASP.NET
team adopted the web part concept and rebuilt the entire web part framework
using ASP.NET 2.0.
Because Windows
SharePoint Services V3.0 uses .NET Framework 2.0, WSS web parts can also use
the ASP.NET 2.0 web parts control set. When you are creating web parts for WSS
V3.0, you have the option of inheriting from the
System.Web.UI.WebControls.WebParts.WebPart (ASP.NET 2.0 web part) or Windows
SharePoint Services web part class. The Windows SharePoint Services web part
class was part of Windows SharePoint Services V2.0, before the ASP.NET web
parts were introduced, where they supported web part development.
Developers can now easily
apply their .NET development experience and use Visual Studio 2005 to create
new ASP.NET 2.0 web parts for Windows SharePoint Services V3.0 sites.
Windows SharePoint Services (WSS) V3.0 Web Part
Infrastructure
The WSS V3.0 web part infrastructure uses many of the ASP.NET 2.0 web part
control sets. The infrastructure also creates its own controls by inheriting
them from the base class provided by the ASP.NET 2.0 web part control set.
There are three controls
that make up the core web part infrastructure in WSS V3.0. They are
SPWebPartManager, WebPartZone and WebPart.
SPWebPartManager Class
WSS V3.0 web pages don't use standard ASP.NET WebPartManager in their pages.
Windows SharePoint Services 3.0 uses the SPWebPartManager
(Microsoft.SharePoint.WebPartPages.SPWebPartManager) that inherits from the
ASP.NET WebPartMnager (System.Web.UI.WebControls.WebParts.WebPartManager)
class. (There is an additional "SP" character in the SharePoint
WebPartManager). The reason for having different names in ASP.NET and
SharePoint is that the WebPartManager is a new concept introduced by ASP.NET
web part controls. SPWebPartManager acts as the central hub, managing all the
web parts and zones. In WSS 2.0 site pages, many of the tasks handled by
SPWebPartManager were done by web part pages (adding, removing, moving web
parts to zones, etc), web part zones, and the web part itself.
By default, the
SPWebPartManager object is added to the master page of the WSS V3.0 pages. The
SPWebPartManager is included in every content page by default because the
master page contains an instance of SPWebPartManager. Because it's already set
up for you, you can add a web part to a WSS V3.0 page without having to worry
about the SPWebPartManager object.
All web parts now belong
to the SPWebPartManager object in a page. This means a reference to the Parent
property of the web part class will return SPWebPartManager object rather than
the WebPartZone object in WSS V2.
WebPartZone Class
The WebPartZone provides a way to organize the web parts in to regions in the
web page. WSS V3.0 uses its own WebPartZone
(Microsoft.SharePoint.WebPartPages.WebPartZone) that is inherited from the
standard ASP.NET 2.0 WebPartZone
(System.Web.UI.WebControls.WebPartsWebPartZone) class. The same name is used in
both ASP.NET web part control and WSS 3.0 web part controls. This is because
the WebPartZone concept was introduced in WSS V2.0 and having the same name
supports backward compatibility.
The WebPartZones control
the appearance of the web part controls. Each zone is rendered as an HTML table
in the browser. A page can contain more than one WebPartZone control. There are
two types of WebPartZones:
- WebPartZoneBase - Contains all the web parts in the web part
page.
- ToolZone - A specialized zone that enables users to change the properties of
the web parts within the selected zone.
The SPWebPartManager and WebPartZone controls manage the serialization of the
web part's data with the Windows SharePoint Services content database. ASP.NET
web parts must be placed on a page with these two controls, if you want the
data to persist and to support personalization.
WebPart Class
ASP.NET 2.0 web parts will run on both ASP.NET web pages and WSS site pages.
You can build a web part for WSS V3.0 site that drives from:
- System.Web.UI.WebControls.WebParts.WebPart
- Microsoft.SharePoint.WebPartPages.WebPart
When you create web parts for WSS 3.0 sites, Microsoft recommends using ASP.NET
2.0 web parts rather than SharePoint web parts. An exception to this is when
you require additional functionalities that are not part of ASP.NET 2.0 web
part control set, but which are provided from SharePoint web parts.
Importing and Exporting Web Parts
You won't be able to simply copy your ASP.NET 2.0 web parts to Windows
SharePoint Services V3.0 pages. To use your ASP.NET web parts in the SharePoint
environment, you must first export your ASP.NET web parts and then import them
to the SharePoint pages. (The Building ASP.NET 2.0 Web Part for Windows
SharePoint Services 3.0 and Microsoft SharePoint Server 2007 article covers
more details)
When to Use Windows SharePoint
Services Web Part Class
There are a few cases when you will have to use Windows SharePoint
Services web parts instead of ASP.NET web parts. Windows SharePoint Services
web parts support additional Windows SharePoint Services features that are not
supported through an ASP.NET web part. Following is a list of features that are
only supported through Windows SharePoint Services web parts:
- Connections between web parts that are outside of a Web Part zone
- Cross page connections
- A data caching infrastructure that allows caching to the content database
- Client-side connections (Web Part Page Services Component)
Another reason for using Windows SharePoint Services web parts is when you want
to upgrade your Windows SharePoint Services V2.0 web parts to the V3.0
environment. The new version of the web part should be driven from the
SharePoint web part class. SharePoint web parts can only be hosted in Windows
SharePoint Services site pages.
Top Reasons to trust your SharePoint 3 website to ASPHostCentral.com
What we think makes ASPHostCentral.com so compelling is how
deeply integrated all the pieces are. We integrate and centralize
everything--from the systems to the control panel software to the process of
buying a domain name. For us, that means we can innovate literally everywhere.
We've put the guys who develop the software and the admins who watch over the
server right next to the 24-hour Fanatical Support team, so we all learn from
each other:
- 24/7-based Support - We never fall
asleep and we run a service that is operating 24/7 a year. Even everyone is on
holiday during Easter or Christmas/New Year, we are always behind our desk
serving our customers
- Excellent Uptime Rate - Our key
strength in delivering the service to you is to maintain our server uptime
rate. We never ever happy to see your site goes down and we truly understand
that it will hurt your onlines business. If your service is down, it will
certainly become our pain and we will certainly look for the right pill to kill
the pain ASAP
- High Performance and Reliable Server
- We never ever overload our server with tons of clients. We always load
balance our server to make sure we can deliver an excellent service, coupling
with the high performance and reliable server
- Experts in SharePoint 3 Hosting -
Given the scale of our environment, we have recruited and developed some of the
best talent in the hosting technology that you are using. Our team is strong
because of the experience and talents of the individuals who make up
ASPHostCentral
- Daily Backup Service - We realise
that your website is very important to your business and hence, we never ever
forget to create a daily backup. Your database and website are backup every
night into a permanent remote tape drive to ensure that they are always safe
and secure. The backup is always ready and available anytime you need it
- Easy Site Administration - With
our powerful control panel, you can always administer most of your site
features easily without even needing to contact for our Support Team.
Additionally, you can also install more than 100 FREE applications directly via
our Control Panel in 1 minute!
Happy hosting!