Wednesday, January 9, 2008

ASP.net WebParts Vs SharePoint WebParts - Which one to choose?

This might be a question which should have come in your mind that which Webpart you should use while developing a Web Part for Sharepoint.

As you know SharePoint 2007 is based on top on ASP.net 2.0 framework. Beginners are using System.Web.UI.WebControls.WebParts.WebPart as a reference for the Web Part Creation.

This enables:

  • Usage on websites developed on ASP.net 2.0 and also on SharePoint based portals
  • Getting familiarized with Windows SharePoint Services 3.0 classes as a starting point

But as you started with coding and working on MOSS or SPS would need to move on to Microsoft.SharePoint.WebPartPages.WebPart in your code.

It obviously has it's own advantages:
  1. Enables cross-page connections
  2. Enables connections between webparts placed in different webpart zones on the same SharePoint page
  3. Helps in migrating webpart code to WSS 3.0 based webparts
  4. Utilize the SharePoint offerred data caching mechanism

No comments:

Post a Comment