Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
My Table Is-:

PackageType

Id ParentId TypName
1 0 Domestic
2 0 International
3 1 aaa
4 1 bbb
5 1 ccc
6 1 ddd
7 2 aaa
8 2 bbb
9 2 ccc
10 2 ddd

My result should be-:
--Domestic--
aaa
bbb
ccc
ddd
--International--
aaa
bbb
ccc
ddd

please help me..............
Posted
Updated 23-Feb-14 20:48pm
v2
Comments
Ramug10 24-Feb-14 2:53am    
are you want to bind category and subcategory in one dropdown?
abhishek burnwal Kolkata 24-Feb-14 2:59am    
yes

 
Share this answer
 
I guess you need DropDownList with OptionGroup[^].
 
Share this answer
 
Use ajax cascading dropdown list control.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900