Click here to Skip to main content
6,596,602 members and growing! (20,730 online)
Email Password   helpLost your password?
Web Development » ASP » Components     Intermediate

A Tree Control using ASP

By Iulian Iuga

A simple tree control written using ASP that allows you to display hierachical data.
VBScript, ASP, Dev
Posted:15 May 2000
Views:219,243
Bookmarked:33 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
31 votes for this article.
Popularity: 4.99 Rating: 3.34 out of 5
3 votes, 42.9%
1

2
1 vote, 14.3%
3
1 vote, 14.3%
4
2 votes, 28.6%
5
  • 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


    Member

    Occupation: Web Developer
    Location: Germany Germany

    Other popular ASP articles:

    Article Top
    You must Sign In to use this message board.
    FAQ FAQ 
     
    Noise Tolerance  Layout  Per page   
     Msgs 1 to 25 of 43 (Total in Forum: 43) (Refresh)FirstPrevNext
    GeneralMulti-Column TreeView PinmemberJim Brooks11:47 3 Nov '07  
    Generalreply immediately my mail Pinmemberlingeswararaj.s23:46 3 Dec '06  
    GeneralA Tree Control using ASP Pinmemberodiebaby20:33 15 Mar '06  
    GeneralPretty good! Pinmemberdeepakjha2:48 13 Jan '05  
    GeneralRe: Pretty good! Pinmemberanu_dreams4:48 9 Jun '05  
    GeneralError Message Pinmemberacpt19:41 15 Dec '04  
    GeneralRe: Error Message PinmemberIulian Iuga2:13 7 Jan '05  
    GeneralRe: Error Message Pinmemberanu_dreams4:50 9 Jun '05  
    GeneralHow to create a tree with infinite no of child Pinmemberpercyvimal0:30 18 Mar '04  
    Generalcode does not work Pinmemberramyamn0:22 30 Dec '03  
    GeneralExcellent control PinmemberAveryH23:54 13 Nov '03  
    GeneralError, general error. Watch the code! (1.5) PinmemberIulian Iuga8:42 3 Nov '03  
    GeneralRe: Error, general error. Watch the code! (1.5) Pinmemberpercyvimal17:56 11 Mar '04  
    Generalyour code is not work PinmemberHimadrish Laha2:07 23 Sep '03  
    GeneralError, general error. Pinmemberchungwong10:43 16 Jun '03  
    GeneralRe: Error, general error. PinmemberIulian Iuga21:37 16 Jun '03  
    GeneralTree should remain always expanded Pinsussvinod (India)0:12 29 May '03  
    GeneralError Page PinsussAnonymous19:48 18 Dec '02  
    GeneralRe: Error Page PinmemberIulian Iuga22:43 18 Dec '02  
    GeneralRe: Error Page Pinmembershekhar_shah20007:15 30 Jan '03  
    Generaliam also getting the same error 1.5 please help Pinmemberrahil10:42 18 Aug '03  
    GeneralRe: iam also getting the same error 1.5 please help PinmemberIulian Iuga2:45 1 Sep '03  
    Generaliam also getting the same error 1.5 please help Pinmemberemmanuelconstant7:15 22 Oct '03  
    GeneralRe: iam also getting the same error 1.5 please help Pinsussbunso15:00 24 Oct '03  
    Generaltfrtrt PinsussAnonymous21:01 4 Dec '02  

    General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    PermaLink | Privacy | Terms of Use
    Last Updated: 15 May 2000
    Editor: Chris Maunder
    Copyright 2000 by Iulian Iuga
    Everything else Copyright © CodeProject, 1999-2009
    Web09 | Advertise on the Code Project