5,421,850 members and growing! (18,706 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.
VBScriptNT4, Windows, ASP, IIS, Dev

Posted: 15 May 2000
Updated: 15 May 2000
Views: 202,757
Bookmarked: 26 times
Announcements
Want a new Job?



Search    
Advanced Search
Sitemap
31 votes for this Article.
Popularity: 4.99 Rating: 3.34 out of 5
3 votes, 42.9%
1
0 votes, 0.0%
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



    Occupation: Web Developer
    Location: Germany Germany

    Other popular ASP articles:

    Article Top
    Sign Up to vote for this article
    You must Sign In to use this message board.
    FAQ FAQ Noise ToleranceSearch Search Messages 
     Layout  Per page   
     Msgs 1 to 25 of 43 (Total in Forum: 43) (Refresh)FirstPrevNext
    Subject  Author Date 
    GeneralMulti-Column TreeViewmemberJim Brooks11:47 3 Nov '07  
    Generalreply immediately my mailmemberlingeswararaj.s23:46 3 Dec '06  
    GeneralA Tree Control using ASPmemberodiebaby20:33 15 Mar '06  
    GeneralPretty good!memberdeepakjha2:48 13 Jan '05  
    GeneralRe: Pretty good!memberanu_dreams4:48 9 Jun '05  
    GeneralError Messagememberacpt19:41 15 Dec '04  
    GeneralRe: Error MessagememberIulian Iuga2:13 7 Jan '05  
    GeneralRe: Error Messagememberanu_dreams4:50 9 Jun '05  
    GeneralHow to create a tree with infinite no of childmemberpercyvimal0:30 18 Mar '04  
    Generalcode does not workmemberramyamn0:22 30 Dec '03  
    GeneralExcellent controlmemberAveryH23:54 13 Nov '03  
    GeneralError, general error. Watch the code! (1.5)memberIulian Iuga8:42 3 Nov '03  
    GeneralRe: Error, general error. Watch the code! (1.5)memberpercyvimal17:56 11 Mar '04  
    Generalyour code is not workmemberHimadrish Laha2:07 23 Sep '03  
    GeneralError, general error.memberchungwong10:43 16 Jun '03  
    GeneralRe: Error, general error.memberIulian Iuga21:37 16 Jun '03  
    GeneralTree should remain always expandedsussvinod (India)0:12 29 May '03  
    GeneralError PagesussAnonymous19:48 18 Dec '02  
    GeneralRe: Error PagememberIulian Iuga22:43 18 Dec '02  
    GeneralRe: Error Pagemembershekhar_shah20007:15 30 Jan '03  
    Generaliam also getting the same error 1.5 please helpmemberrahil10:42 18 Aug '03  
    GeneralRe: iam also getting the same error 1.5 please helpmemberIulian Iuga2:45 1 Sep '03  
    Generaliam also getting the same error 1.5 please helpmemberemmanuelconstant7:15 22 Oct '03  
    GeneralRe: iam also getting the same error 1.5 please helpsussbunso15:00 24 Oct '03  
    GeneraltfrtrtsussAnonymous21: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-2008
    Web17 | Advertise on the Code Project