Hi friends,
I have a doubt how to bind drop down list. i have a table.
Id | Category Name | Main Category | Weight |
1 | Curriculum | 0 | 0 |
2 | Science | 1 | 1 |
3 | Non-Curriculum | 0 | 0 |
4 | Physics | 2 | 2 |
5 | Acting | 3 | 1 |
6 | Concave Lense | 4 | 3 |
|
|
|
|
In this table the main category is denotes the subcategory which will come under that category the weight denotes that sub category level.
for the above table i want to bind drop down like this format
Curriculum
-Science
--Physics
---Concave Lense
Non-Curriculum
-Acting
Can any one know the solutions please help me. u often see this is in article posting sites. if any one have the idea tell me,
Thanks,