8
Answers

How to create treeview from to db using one table in asp.net

Anjali Khan

Anjali Khan

7y
238
1
Hi frnds How to create treeview parent n child node using db in asp.net. 1. I have a table with column name like Userid. Username. Designation name I want to create treeview using single table here we can use name n designation column.so how to do these things. N use stored procedure
Answers (8)
0
El Mahdi Archane

El Mahdi Archane

NA 5.9k 743.8k 7y
Here, you will find my article which describes all the steps to create TreeView with Asp.Net MVC.
http://www.c-sharpcorner.com/article/using-treeview-with-asp-net-mvc-4/
  
0
Anjali Khan

Anjali Khan

NA 738 42.2k 7y

Attachment admin.zip

i shared my table
0
Dharmraj Thakur

Dharmraj Thakur

NA 4.1k 61.7k 7y
Show me your table structure (create table script only).
0
Anjali Khan

Anjali Khan

NA 738 42.2k 7y
Dear frnds
 
i not able to create treeview from to table .i am sending you my table so please
 
how to create thru this.
 
 
both table like department and parent table .i created procedure also which i attached.
 
department table --parent node
 
parent table -- for child node
 
 
please make me treeview  using this .its urgent 
 
 
0
Amit Kumar

Amit Kumar

NA 3.5k 203.7k 7y
Hi Anjali,
              What happen, if you want to use single table then do not  use dataset  use pnly datatable and do not bind childnode. Then it works fine.
 
Regards,
Amit 
 
0
Dharmraj Thakur

Dharmraj Thakur

NA 4.1k 61.7k 7y
For you reference its my article check it....
 
http://www.c-sharpcorner.com/article/create-dynamic-treeview-from-database-using-asp-net-mvc-5/ 
0
Anjali Khan

Anjali Khan

NA 738 42.2k 7y
Hi Amit
 
i want treeview using single table  
0
Amit Kumar

Amit Kumar

NA 3.5k 203.7k 7y
Hi,
    Visit the below url.
 
http://www.c-sharpcorner.com/UploadFile/b926a6/create-treeview-in-Asp-Net-with-sql-database-tables/
https://www.aspsnippets.com/Articles/Populate-Bind-TreeView-from-database-in-ASPNet.aspx