<tv:APNSoftTreeView id="tv1" runat="server" />
<asp:PlaceHolder id = PlaceHolder1 runat = "server" />
[C#] //Create TreeView component instance APNSoft.WebControls.APNSoftTreeView tv1 = new APNSoft.WebControls.APNSoftTreeView(); tv1.BasePage = base.Page; tv1.ID = "tv1"; //Set component properties tv1.StructureFileURL = "~/Structures/TreeView.xml"; tv1.SkinFolderURL = "~/Skins/Classic/"; tv1.ShowLines = true; //Put the TreeView in the PlaceHolder PlaceHolder1.Controls.Add(tv1); [VB.NET] 'Create TreeView component instance dim tv1 as APNSoft.WebControls.APNSoftTreeView = _ new APNSoft.WebControls.APNSoftTreeView tv1.BasePage = Me.Page tv1.ID = "tv1" 'Set component properties tv1.StructureFileURL = "~/Structures/TreeView.xml" tv1.SkinFolderURL = "~/Skins/Classic/" tv1.ShowLines = True 'Put the TreeView in the PlaceHolder PlaceHolder1.Controls.Add(tv1)