Click here to Skip to main content
15,065,328 members
Articles / Web Development / HTML
Posted 23 Nov 2004


34 bookmarked

ASP TreeView (Version 2.0)

Rate me:
Please Sign up or sign in to vote.
4.12/5 (22 votes)
28 Mar 2005GPL32 min read
ASP TreeView is a advanced ASP control that's base on Server side / Client side technique. server side: Asp + JScript, client side: Jscript + HTML.

If you think the ASP TreeView won't too bad that immediately Vote for it!

Sample Image - asptreeview.gif


ASP TreeView is an advanced TreeView control that's base on ASP technique. server side: Asp + JScript, client side: JScript + HTML.

The picture below shows Asp TreeView's work flow and running elements:



Image 3Image 4Image 5Image 6

Client side: IE5+, Gecko browser (Mozilla, Firefox, NetScape)

Server side : IIS4.0 , ASP3.0+


  • compatibility IE5+, Gecko browser (Mozilla, Firefox, NetScape)
  • server side: Access2000 database - tree.mdb to be create automatically (if tree.mdb nonexistent)
    --- the function need MDAC2.0+
  • support check boxes
  • tree item moving, dragging, dropping accessible!
  • using XMLHTTP technic to refresh tree which's asynchronous
  • Asp TreeView's user interface and functions customization
  • HTML codes as tree item's text is acceptable (except "SPAN" and "DIV")
  • tree item expand or collapse don't be interactive mode

How to use ASP TreeView?

you will need extract download source files and locate the directory -- "Samples", thereinto have a sample page -- "treedemo.asp" to offer reference:

To include Asp TreeView inside sample page. It is quite easy to use and configure.

Step 1:

Suppose that the Asp TreeView is installed the /Tree/ path of your web site. you need include AspTreeView.asp server side scripts inside the <BODY> of sample page, just like this:

<!--<span class="code-comment"> #include virtual="/tree/AspTreeView.asp" --></span> 

or you can using relative path, just like this:

<!--<span class="code-comment"> #include file=".. /AspTreeView.asp" --></span> 

Step 2:

Modify inside parameter BasePath of config.asp:

BasePath = "/Tree/"


To avoid using relative paths. It is preferable to set the base path starting from the root (/). Always finish the path with a slash (/).

Configurable File: config.asp

  • path configure :suppose that the Asp TreeView is installed the /Tree/ path of your web site,

    modify inside parameter BasePath of config.asp:

    BasePath = "/Tree/"
  • ASP TreeView user interface:width, height, background etc.
  • ASP TreeView performance configure: enabled / disabled function customization, such as tree item be drag, drop, delete, rename.
  • ASP TreeView runtime configure:setting parameter value - IsVisibleMode
    true: All the tree items are visible while ASP TreeView have been initialized
    false: The belonging to first level items for root item are visible while ASP TreeView have been initialized


The software has still exist unexpected errors, welcome to test it, finding out errors to E-mail:

You are allowed to use the ASP TreeView that's free, the ASP TreeView is only for personal and nonprofit organization, you can't use commercially that's in face of legal. to use commercially to purchase licensed through visit: Now, cheap for the ASP TreeView, a commercial license need pay $3.99.


This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


About the Author
Software Developer (Senior)
China China
I was borned at Jianghan district, Qianjiang Hubei province of China, and always pursuiting his dream in Beijing.

Last century 1996, I got a learning machine called Subor(1.8MHZ CPU, 2k memory) that it can be connected to TV looked like computer emulater, the machine is really good for learning G-Basic, and Wubi inputs, after soon, A real PC was presented to me, the core was 586 pentium MMX, really graceful! in that mean-time, I practiced Javascript language and dynamic HTML on that PC, of course, including many famouse classic games. also, I have further self-studied professional electronic courses via Wuhan University.

A great starting point was in 2001, I went to a software firm and did deepth experience in real software development, learned C/C++ and ASP(VBscript).

In 2005, I moved to another creative firm, major responsibility is to develop windows GUI based on MFC framework, and early touched Mac PowerPC and Macbook for migrating soft. I'm still there and developing a great social web application.

In 2007, I have married with my wife and had a very cute daughter she's close to 3 old now. At all available time, I has been activating on and doing lots of amazing jobs.

Comments and Discussions

Questionhoooo Pin
Đặng Thanh Nam13-Nov-11 22:56
MemberĐặng Thanh Nam13-Nov-11 22:56 
Questionnam dang Pin
Đặng Thanh Nam13-Nov-11 22:52
MemberĐặng Thanh Nam13-Nov-11 22:52 
Generalgood Pin
Member 110714717-Jun-10 22:55
MemberMember 110714717-Jun-10 22:55 
GeneralProblems with tree adding new node when looping thru database Pin
debra mckinnon12-Mar-08 10:31
Memberdebra mckinnon12-Mar-08 10:31 
GeneralTHX Pin
diky15-Feb-08 17:54
Memberdiky15-Feb-08 17:54 
GeneralThank you! Pin
changlong1-May-07 15:59
Memberchanglong1-May-07 15:59 
Generalmessages system! Pin
Phan Thanh Lam6-Mar-07 15:13
MemberPhan Thanh Lam6-Mar-07 15:13 
GeneralTreeview "Loading....." Pin
hootsman30-Aug-06 21:48
Memberhootsman30-Aug-06 21:48 
GeneralRe: Treeview "Loading....." Pin
simonchen.net3-Sep-06 21:13
Membersimonchen.net3-Sep-06 21:13 
QuestionRe: Treeview "Loading....." Pin
hootsman3-Sep-06 21:38
Memberhootsman3-Sep-06 21:38 
AnswerRe: Treeview "Loading....." Pin
simonchen.net27-Sep-06 14:58
Membersimonchen.net27-Sep-06 14:58 
GeneralRe: Treeview "Loading....." Pin
Axeliux18-Jan-07 8:56
MemberAxeliux18-Jan-07 8:56 
GeneralHelp Me! Pin
chunglvcit28-May-06 17:53
Memberchunglvcit28-May-06 17:53 
GeneralRe: Help Me! Pin
simonchen.net8-Aug-06 17:15
Membersimonchen.net8-Aug-06 17:15 
Questionwhy show clobber ? Pin
kimble_wu26-Mar-06 16:44
Memberkimble_wu26-Mar-06 16:44 
Generalmove items Pin
Riccardo Caputi25-Feb-06 10:26
MemberRiccardo Caputi25-Feb-06 10:26 
GeneralRe: move items Pin
simonchen.net29-Mar-06 17:46
Membersimonchen.net29-Mar-06 17:46 
QuestionWhere is the mdb? Pin
andrefariagomes24-Jun-05 6:21
Memberandrefariagomes24-Jun-05 6:21 
Generalok.. Pin
theJazzyBrain28-Mar-05 4:20
MembertheJazzyBrain28-Mar-05 4:20 
GeneralRe: ok.. Pin
simonchen.net29-Mar-05 14:10
Membersimonchen.net29-Mar-05 14:10 
GeneralRe: ok.. Pin
theJazzyBrain29-Mar-05 23:20
MembertheJazzyBrain29-Mar-05 23:20 
GeneralRe: ok.. Pin
Axeliux18-Jan-07 8:57
MemberAxeliux18-Jan-07 8:57 
GeneralRe: ok.. Pin
simonchen.net31-Mar-05 1:46
Membersimonchen.net31-Mar-05 1:46 

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.