Re: the right time to dynamically set links in Linktree ddl

  •  01-25-2006, 4:13 PM

    Re: the right time to dynamically set links in Linktree ddl

    You can also put it into the Page_Load event.
     

     
    Public Sub Page_Load(sender As object, e As System.EventArgs)
     
      If Not Page.IsPostBack Then
       If Not Editor1.ToolControls("LinkTree") Is Nothing Then
        Dim tdd As CuteEditor.TreeDropDownList
        Dim richitem As CuteEditor.RichListItem
        tdd = DirectCast(Editor1.ToolControls("LinkTree").Control, CuteEditor.TreeDropDownList)
        'clear the items from configuration files
        'see Configuration/Shared/Common.config
        'tdd.Items.Clear()
        'Add items by code
        Dim rootitem As CuteEditor.TreeListItem
        rootitem=new CuteEditor.TreeListItem("Root")
        rootitem.Selectable=false
        tdd.Items.Add(rootitem)
        rootitem.Items.Add("Asp.Net","Asp.Net","http:'asp.net")
        rootitem.Items.Add("DotNetNuke.Net","DotNetNuke.Net","http:'DotNetNuke.com")
        rootitem.Items.Add("CuteSoft","CuteSoft","http:'CuteSoft.net")
       End If
      End If
     End Sub

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread