Logo 
Search:

Sharepoint FAQ

Submit Interview FAQ
Home » Interview FAQ » SharepointRSS Feeds

What are the differences between the two base classes and what are the inherit benefits of usin

  Shared By: Tarang Nayak    Date: Mar 12    Category: Sharepoint    Views: 1248

Answer:

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:

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

ASP.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.

Share: 
 


Related Topics:

Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: