this is my datset...... its having 3 column as per shown
id Text parent id
----------------------------
1 Micro 0
2 mahape 1
3 vashi 1
4 Andheri 1
5 M-SDD 2
6 M-EDD 2
7 V-Admin 3
8 V-HR 3
9 A-SDD 4
10 A-Admin 4
11 Pune 1
i require code in asp.net to convert it into unorderlist of html
i want result like that but i cant get it so please.....
<ul id="org" style="display:none">
<li> MICRO <ul>
<li>MAHAPE
<ul>
<li>M-SDD</li>
<li>M-EDD</li>
</ul>
</li>
<li >VASHI
<ul>
<li>V-ADMIN </li>
<li>V-HR</li>
</ul>
</li>
<li >ANDHERI
<ul>
<li>A-SDD</li>
<li>A-ADMIN</li>
</ul>
</li>
</ul>
</li>
</ul>
so please help me
i used this link but not giving prefect output
http://stackoverflow.com/questions/2456688/converting-hierarchical-data-into-an-html-unordered-list-programmatically-using[
^]
[edit]Code block added - OriginalGriff[/edit]