Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to make binary tree in asp

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
A person register a form and enters into the scheme.this person has joined under a sponser.every person has to join two person.again this person has to join another two person
this functions same as a binary tree.the main root node has two child nodes and then the twochild nodes has four child nodes.this continues until 15 th level is completed.
now the problem is suppose a individual person wants to see his tree and he enters his username and click abutton than he should be able to see his tree,mean suppose suresh is root node and siva and srinu are the child nodes ,now if siva enters his name than he should be able to see his tree.
please send the coding for this in visual basics.
 
Actually, the best way to do this would be to use XML.

Try cutting-and-pasting this code into NotePad and save it as SAMPLE.XML, and then view it with MSIE 5+.

<?xml version=&quot;1.0&quot;?>
<PEOPLE>
<PERSON>
<NAME>suresh</NAME>
</PERSON>
<PERSON>
<NAME>siva</NAME>
</PERSON>
<PERSON>
<NAME>srinu</NAME>
</PERSON>
</PEOPLE>

You can start by basing your data on this structure and then work on building a VBScript page to iterate through the nodes and display the data.
 
A person register a form and enters into the scheme.this person has joined under a sponser.every person has to join two person.again this person has to join another two person
this functions same as a binary tree.the main root node has two child nodes and then the twochild nodes has four child nodes.this continues until 15 th level is completed.
now the problem is suppose a individual person wants to see his tree and he enters his username and click abutton than he should be able to see his tree,mean suppose suresh is root node and siva and srinu are the child nodes ,now if siva enters his name than he should be able to see his tree.
please send coding in vb script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top