How to Guide: ASP.NET webparts vs Sharepoint webparts
I am reading this article which says it is always better to use ASP.NET webparts as the SharePoint webparts are simply derived from ASP.NET You only get to use SharePoint webparts when:
1. If you need to do cross page connections
2. Connections between two Web Parts that aren’t in a Web Part zone
3. Client-side connections, or
4. Leverage the data caching infrastructure provided by SharePoint.
The articles are:
Writing custom webparts
MOSS: ASP.NET 2.0 vs. WSS v3 Web Parts
What do I think?
If I am deploying the webpart in a SharePoint page I would use the SharePoint webparts, otherwise I use the ASP.NET when working on customized aspx pages deployed in the _layouts folder.
I keep things simple, and avoid any risk of running into trouble during migration, upgrades and stuff.
Also, my webparts would be ready when any of the four reasons stated above becomes a requirement.
