---
title: "What are the differences between the two base classes and what are the inherit benefits of using one over another?"  
description: "What are the differences between the two base classes and what are the inherit benefits of using one over another?"  
author: "Anonymous User"  
published: 2011-11-15  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/1359/what-are-the-differences-between-the-two-base-classes-and-what-are-the-inherit-benefits-of-using-one-over-another  
category: "sharepoint"  
tags: ["sharepoint"]  
reading_time: 2 minutes  

---

# 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.

## Answers

### Answer by Anonymous User

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.


---

Original Source: https://www.mindstick.com/interview/1359/what-are-the-differences-between-the-two-base-classes-and-what-are-the-inherit-benefits-of-using-one-over-another

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
