1.

What Are The Differences Between The Two Base Classes And What Are The Inherit Benefits Of Using One Over Another?

Answer»

The difference is the Microsoft.SharePoint.WebPartPages.WebPart base class is MEANT for backward compatibility with previous versions of SharePoint. The benefit of USING the SharePoint WebPart base class is it supported:

  • Cross page connections
  • Connections between Web Parts that are outside of a Web Part zone
  • Client-side connections (Web Part Page Services Component)
  • Data caching infrastructure
  • NET 2.0 WebParts are generally considered better to USE because SharePoint is BUILT upon the ASP.NET 2.0 web architecture. Inheriting from the ASP.NET 2.0 base class offers you features that inherit to ASP.NET 2.0, such as embedding RESOURCES as opposed to use ClassResources for deployment of said types.

The difference is the Microsoft.SharePoint.WebPartPages.WebPart base class is meant for backward compatibility with previous versions of SharePoint. The benefit of using the SharePoint WebPart base class is it supported:



Discussion

No Comment Found