Click here to Skip to main content
13,353,462 members (65,464 online)
Click here to Skip to main content
Add your own
alternative version


35 bookmarked
Posted 15 May 2000

A Tree Control using ASP

, 15 May 2000
Rate this:
Please Sign up or sign in to vote.
A simple tree control written using ASP that allows you to display hierachical data.
  • Download source files - 16 Kb
  • Sample Image - TreeControl.jpg

    The project is a simple Tree Control created using ASP. This is first version that offers only display feature, but in the next version the user will be able to add, edit and delete nodes.

    The Tree Control structure is stored in an access database. The TreeContent table has following columns:

  • IDNode – number, is the node ID and it not be duplicated.
  • IDParentNode – number, is the ID parent node.
  • NodeCaption – string, node caption that will be displayed in the page.
  • NodeType – string, is type of node. Can be one from two valid values: F – folder, I – item. If it contains another value then the node will be folder (F).
  • NodeAction – string, is node action. Is available only for items node, if the node is folder then it has only one action – expand tree. i.e. for node action:, javascript:alert("Test"),
  • The Tree Control can be expanded only to one branch. So, you must modify the path for the database or create a DNS for database connection in the TreeWork.asp file:

    // ' Here YOU MUST change the database path, or create a DSN
    // Const cstrConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=D:\Iulian\TestTree\testtree.mdb"

    Thanks again and enjoy ...


    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    About the Author

    Iulian Iuga
    Web Developer
    Germany Germany
    No Biography provided

    You may also be interested in...


    Comments and Discussions

    QuestionCan many branches be expanded at a time? Pin
    Mohit25-Apr-01 6:01
    memberMohit25-Apr-01 6:01 
    AnswerRe: Can many branches be expanded at a time? Pin
    Anonymous18-Jun-01 0:02
    memberAnonymous18-Jun-01 0:02 
    GeneralAdjustable Frames(Urgent) Pin
    Gopal19-Aug-00 1:12
    sussGopal19-Aug-00 1:12 
    GeneralRe: Adjustable Frames(Urgent) Pin
    Manu22-Dec-00 16:17
    memberManu22-Dec-00 16:17 
    GeneralRe: Adjustable Frames(Urgent) Pin
    Anonymous6-Apr-01 11:10
    memberAnonymous6-Apr-01 11:10 
    Generallklkkkk Pin
    Anonymous10-Apr-02 22:10
    memberAnonymous10-Apr-02 22:10 
    GeneralRe: Adjustable Frames(Urgent) Pin
    Anonymous4-Dec-02 23:47
    sussAnonymous4-Dec-02 23:47 
    GeneralTreeItem Pin
    Mike Rosapepe23-May-00 5:03
    sussMike Rosapepe23-May-00 5:03 
    Could your tree hold items to right side of each node?

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Terms of Use | Mobile
    Web04 | 2.8.180111.1 | Last Updated 16 May 2000
    Article Copyright 2000 by Iulian Iuga
    Everything else Copyright © CodeProject, 1999-2018
    Layout: fixed | fluid