Developers blog, .NET, C#, VB.NET, ATLAS, AJAX, WWF, ORM, LINQ, ARCHITECTURE and more by Frank Kroondijk
zondag, augustus 20, 2006
Working on a large news portal I was searching for a way to add webparts to the catalog at runtime. Well here an article describring the solution. This actually works very good, based on reflection, a must try!
ASP.NET 2.0 introduces the Web Part framework outside of the SharePoint environment. This allows developers to build applications that are configurable by the user at run time. The CatalogPart class is used to provide a list of Web Parts to users at run time. Out of the box, ASP.NET 2.0 does not provide a catalog that is populated at run time. This Support Voice column will discuss how to create a custom catalog for this purpose.
You can download the northwind sample db here (original for sql2000, but works fine in 2005):
Northwind sample db