I would like to add user controls to a Catalog's DeclarativeCatalogPart programmatically.
For example:
<%@ Register Src="~/1/wmsWebParts.ascx" TagName="wmsWebParts" TagPrefix="uc1" %>
<asp:DeclarativeCatalogPart
ID="DeclarativeCatalogPart1"
Title="Catalogue" runat="server" OnPreRender="DeclarativeCatalogPart1_PreRender">
<WebPartsTemplate>
<%-- Add the next two lines programmatically --%>
<uc1:wmsWebParts ID="WebPartID1" title="WebPartTitle1" runat="server" />
<uc1:wmsWebParts ID="WebPartID2" title="WebPartTitle2" runat="server" />
</WebPartsTemplate>
</asp:DeclarativeCatalogPart>
Your help would be much appreciated.
Code in VB if possible please.
Thanking you in anticipation.
Roger