Click here to Skip to main content
11,637,415 members (63,666 online)
Click here to Skip to main content

A Tree Control using ASP

, 15 May 2000 260.6K 4K 35
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: http://www.microsoft.com, javascript:alert("Test"), mailto:iulian_iuga@yahoo.com.
  • 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 ...

    License

    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

    Share

    About the Author

    Iulian Iuga
    Web Developer
    Germany Germany
    No Biography provided

    You may also be interested in...

    Comments and Discussions

     
    GeneralMulti-Column TreeView Pin
    Jim Brooks3-Nov-07 10:47
    memberJim Brooks3-Nov-07 10:47 
    Generalreply immediately my mail Pin
    lingeswararaj.s3-Dec-06 22:46
    memberlingeswararaj.s3-Dec-06 22:46 
    GeneralA Tree Control using ASP Pin
    odiebaby15-Mar-06 19:33
    memberodiebaby15-Mar-06 19:33 
    GeneralPretty good! Pin
    deepakjha13-Jan-05 1:48
    memberdeepakjha13-Jan-05 1:48 
    GeneralRe: Pretty good! Pin
    anu_dreams9-Jun-05 3:48
    memberanu_dreams9-Jun-05 3:48 
    GeneralRe: Pretty good! Pin
    vickyvinod117-Dec-09 20:10
    membervickyvinod117-Dec-09 20:10 
    GeneralError Message Pin
    acpt15-Dec-04 18:41
    memberacpt15-Dec-04 18:41 
    GeneralRe: Error Message Pin
    Iulian Iuga7-Jan-05 1:13
    memberIulian Iuga7-Jan-05 1:13 
    GeneralRe: Error Message Pin
    anu_dreams9-Jun-05 3:50
    memberanu_dreams9-Jun-05 3:50 
    GeneralRe: Error Message Pin
    Member 889484930-Apr-12 1:39
    memberMember 889484930-Apr-12 1:39 
    QuestionHow to create a tree with infinite no of child Pin
    percyvimal17-Mar-04 23:30
    memberpercyvimal17-Mar-04 23:30 
    Generalcode does not work Pin
    ramyamn29-Dec-03 23:22
    memberramyamn29-Dec-03 23:22 
    GeneralExcellent control Pin
    AveryH13-Nov-03 22:54
    memberAveryH13-Nov-03 22:54 
    GeneralError, general error. Watch the code! (1.5) Pin
    Iulian Iuga3-Nov-03 7:42
    memberIulian Iuga3-Nov-03 7:42 
    GeneralRe: Error, general error. Watch the code! (1.5) Pin
    percyvimal11-Mar-04 16:56
    memberpercyvimal11-Mar-04 16:56 
    Generalyour code is not work Pin
    Himadrish Laha23-Sep-03 1:07
    memberHimadrish Laha23-Sep-03 1:07 
    GeneralError, general error. Pin
    chungwong16-Jun-03 9:43
    memberchungwong16-Jun-03 9:43 
    GeneralRe: Error, general error. Pin
    Iulian Iuga16-Jun-03 20:37
    memberIulian Iuga16-Jun-03 20:37 
    GeneralTree should remain always expanded Pin
    vinod (India)28-May-03 23:12
    sussvinod (India)28-May-03 23:12 
    GeneralError Page Pin
    Anonymous18-Dec-02 18:48
    sussAnonymous18-Dec-02 18:48 
    GeneralRe: Error Page Pin
    Iulian Iuga18-Dec-02 21:43
    memberIulian Iuga18-Dec-02 21:43 
    GeneralRe: Error Page Pin
    shekhar_shah200030-Jan-03 6:15
    membershekhar_shah200030-Jan-03 6:15 
    Generaliam also getting the same error 1.5 please help Pin
    rahil18-Aug-03 9:42
    memberrahil18-Aug-03 9:42 
    GeneralRe: iam also getting the same error 1.5 please help Pin
    Iulian Iuga1-Sep-03 1:45
    memberIulian Iuga1-Sep-03 1:45 
    Generaliam also getting the same error 1.5 please help Pin
    emmanuelconstant22-Oct-03 6:15
    memberemmanuelconstant22-Oct-03 6:15 
    GeneralRe: iam also getting the same error 1.5 please help Pin
    bunso24-Oct-03 14:00
    sussbunso24-Oct-03 14:00 
    I got the same error
    Error, general error. Watch the code! (1.5)

    anyone solve this problem


    Bunso
    Generaltfrtrt Pin
    Anonymous4-Dec-02 20:01
    sussAnonymous4-Dec-02 20:01 
    Generaltfrtrt Pin
    Anonymous4-Dec-02 19:35
    sussAnonymous4-Dec-02 19:35 
    Generaltree control in debug watch window Pin
    Pawanonly5-May-02 19:32
    memberPawanonly5-May-02 19:32 
    GeneralRe: tree control in debug watch window Pin
    Iulian Iuga10-May-02 1:38
    memberIulian Iuga10-May-02 1:38 
    GeneralASP tree view Pin
    Anonymous17-Apr-02 21:15
    memberAnonymous17-Apr-02 21:15 
    GeneralRe: ASP tree view Pin
    Anonymous26-Aug-02 10:43
    sussAnonymous26-Aug-02 10:43 
    GeneralRe: ASP tree view Pin
    Anonymous28-Oct-02 20:20
    sussAnonymous28-Oct-02 20:20 
    GeneralRe: ASP tree view Pin
    ngocha7-Apr-04 18:20
    memberngocha7-Apr-04 18:20 
    QuestionIt is possible to have Action on folder level? Pin
    jezmun4-Apr-02 23:06
    memberjezmun4-Apr-02 23:06 
    GeneralMuito legal Pin
    Anonymous5-Oct-01 8:12
    memberAnonymous5-Oct-01 8:12 
    Questioncan i get the parent item value from the selected item? Pin
    vicky6-May-01 18:43
    membervicky6-May-01 18:43 
    QuestionCan many branches be expanded at a time? Pin
    Mohit25-Apr-01 5:01
    memberMohit25-Apr-01 5:01 
    AnswerRe: Can many branches be expanded at a time? Pin
    Anonymous17-Jun-01 23:02
    memberAnonymous17-Jun-01 23:02 
    GeneralAdjustable Frames(Urgent) Pin
    Gopal19-Aug-00 0:12
    sussGopal19-Aug-00 0:12 
    GeneralRe: Adjustable Frames(Urgent) Pin
    Manu22-Dec-00 15:17
    memberManu22-Dec-00 15:17 
    GeneralRe: Adjustable Frames(Urgent) Pin
    Anonymous6-Apr-01 10:10
    memberAnonymous6-Apr-01 10:10 
    Generallklkkkk Pin
    Anonymous10-Apr-02 21:10
    memberAnonymous10-Apr-02 21:10 
    GeneralRe: Adjustable Frames(Urgent) Pin
    Anonymous4-Dec-02 22:47
    sussAnonymous4-Dec-02 22:47 
    GeneralTreeItem Pin
    Mike Rosapepe23-May-00 4:03
    sussMike Rosapepe23-May-00 4:03 

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

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

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