|
|
|
|
Instructor
Notes
|
|
You have already
seen ASP.NET Web Parts. They should be used when creating new projects. This
slides discusses the other two types. Optionally, you can open the demo
project LitwareWebParts.csproj and step through code while you explain the
difference between these three types of Web Parts that can be used in WSS V3
sites. The Web Part classes to step through are
|
|
DemoASPPart
|
|
DemoWSSPart
|
|
DemoHybridPart
|
|
|
|
WSS V2-style Web
Part inherit from a different base class (also named WebPart) defined inside
Microsoft.SharePoint DLL. WSS Web Part also use different attributes (e.g.
Serializable) to mark properties that require persistence. To make these
older WSS V2 Web Parts run inside WSS V3, the WSS team modified the WSS
WebPart base classes to inherit from the ASP.NET WebPart base class instead
of the ASP.NET Control class as in the earlier version. This technique is
known as rebasing.
|
|
|
|
Hybrid Web Parts
directly inherit from WSS WebPart base class instead of the ASP.NET Webpart
base class. However, hybrid Web Parts are different than WSS Web Parts
because they use the newer style of attributes and are designed to take
advantage of both the WSS WebPart class and the ASP.NET WebPart base class.
|