WHAT ARE THE DIFFERENCES BETWEEN THE TWO BASE CLASSES AND WHAT ARE THE INHERIT BENEFITS OF USING ONE OVER ANOTHER?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
 2016  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    What are the differences between the two base classes and what are the inherit benefits of using one over another?

    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:

    1)  Cross page connections Connections between Web Parts that are outside of a Web Part zone

    2)  Client-side connections (Web Part Page Services Component)

    3)  Data caching infrastructure

    ASP.NET 2.0 Web Parts 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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!