Click here to Skip to main content
Licence 
First Posted 15 May 2000
Views 246,278
Bookmarked 35 times

A Tree Control using ASP

By | 15 May 2000 | Article
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

    About the Author

    Iulian Iuga

    Web Developer

    Germany Germany

    Member



    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    GeneralMulti-Column TreeView PinmemberJim Brooks10:47 3 Nov '07  
    Generalreply immediately my mail Pinmemberlingeswararaj.s22:46 3 Dec '06  
    GeneralA Tree Control using ASP Pinmemberodiebaby19:33 15 Mar '06  
    GeneralPretty good! Pinmemberdeepakjha1:48 13 Jan '05  
    GeneralRe: Pretty good! Pinmemberanu_dreams3:48 9 Jun '05  
    GeneralRe: Pretty good! Pinmembervickyvinod120:10 17 Dec '09  
    GeneralError Message Pinmemberacpt18:41 15 Dec '04  
    GeneralRe: Error Message PinmemberIulian Iuga1:13 7 Jan '05  
    GeneralRe: Error Message Pinmemberanu_dreams3:50 9 Jun '05  
    GeneralRe: Error Message PinmemberMember 88948491:39 30 Apr '12  
    QuestionHow to create a tree with infinite no of child Pinmemberpercyvimal23:30 17 Mar '04  
    Generalcode does not work Pinmemberramyamn23:22 29 Dec '03  
    GeneralExcellent control PinmemberAveryH22:54 13 Nov '03  
    GeneralError, general error. Watch the code! (1.5) PinmemberIulian Iuga7:42 3 Nov '03  
    GeneralRe: Error, general error. Watch the code! (1.5) Pinmemberpercyvimal16:56 11 Mar '04  
    Generalyour code is not work PinmemberHimadrish Laha1:07 23 Sep '03  
    GeneralError, general error. Pinmemberchungwong9:43 16 Jun '03  
    GeneralRe: Error, general error. PinmemberIulian Iuga20:37 16 Jun '03  
    GeneralTree should remain always expanded Pinsussvinod (India)23:12 28 May '03  
    GeneralError Page PinsussAnonymous18:48 18 Dec '02  
    GeneralRe: Error Page PinmemberIulian Iuga21:43 18 Dec '02  
    GeneralRe: Error Page Pinmembershekhar_shah20006:15 30 Jan '03  
    Generaliam also getting the same error 1.5 please help Pinmemberrahil9:42 18 Aug '03  
    GeneralRe: iam also getting the same error 1.5 please help PinmemberIulian Iuga1:45 1 Sep '03  
    Generaliam also getting the same error 1.5 please help Pinmemberemmanuelconstant6:15 22 Oct '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.

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