Hi ,
I have two tables in Sql Server Database:
Table1: Category - Columns Category_ID, categoryName
Table2: SubCategory --Columns SubCategory_ID, SubCategoryName, Category_ID
How to create treeviews for each category?
Category Table Data:
1 Item1
2 Item2
3 Item3
4 Item4
SubCategory Table Data
1 SubItem1 Item1
2 SubItem2 Item1
3 SubItem3 Item1
4 SubItem4 Item2
5 SubItem5 Item2
6 SubItem6 Item3
7 Subitem7 Item3
How to display the below treeviews/Lists on UI
Item1 Item2 Item3 Item4
SubItem1 SubItem4 SubItem6
SubItem2 SubItem5 SubItem7
SubItem3
Please provide me the asp.net and c# code that will generate the above UI. I am new to c#..
Thanks