SharePoint Web Part for ASP.NET Web Part

Can someone give me the difference between the SharePoint web part and the ASP.NET web part. I have found very little information describing the differences.

Thanks in advance.

+4
source share
2 answers

MSDN - Choose between ASP.NET 2.0 Web Parts and Windows SharePoint Services 3.0 Web Parts

You must create ASP.NET 2.0 Web Parts when you can. However, there are a few exceptions when using SharePoint-based web parts can provide benefits. The following table shows the decision matrix to help you choose the best option based on your business needs.

Create a custom ASP.NET 2.0 Web Part

  • For most business needs.

  • Distributing your web part to sites that run ASP.NET 2.0 or SharePoint sites.

  • If you want to reuse one or more Web Parts created for ASP.NET 2.0 sites on SharePoint sites.

  • To use the provided data or functionality of Windows SharePoint Services 3.0. For example, you create a Part website that works with a website or data list.

Create a SharePoint Web Part

  • If you want to migrate a set of Web sites Parts that use SharePoint sites Part of the infrastructure for Windows SharePoint Services 3.0.

  • To create cross-page links.

  • To create connections between Web Parts that are outside the Web Part zone.

  • To work with client connections (Web Part Page Service Component).

  • To use a data caching infrastructure that allows you to cache the contents of a database.

+7
source

As I understand it, SharePoint WebPart overrides ASP.NET WebPart

  • to save your data inside a SharePoint Foundation content database

  • you can create and use the ASP.NET web part in SharePoint, but not vice versa.

  • SPF WebParts supports backward compatibility, interstitial connections, connections between web pages located outside the zone, client connections (component of web part services), data caching (including database)

  • they use different WebPartManager objects (for example, SPWebPartManager) and WebPartZone, so you cannot easily copy WebParts pages from ASP.NET to SharePoint, but export WebParts

Most of this search ...

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.webpart.aspx

http://msdn.microsoft.com/en-us/library/ms415560.aspx

+2
source

All Articles