How to show hierarchial data in a dropdownlist.
Posted
by vaibhav
on Stack Overflow
See other posts from Stack Overflow
or by vaibhav
Published on 2010-03-21T21:50:45Z
Indexed on
2010/03/21
22:01 UTC
Read the original article
Hit count: 304
I have a table in sqlserver 2005.
I want to show all domain name in a dropdownlist maintaing the same hierarchy. i.e
Law
Engineering
--civil
--Mechanical
Medical
--Dental
----Cavity
--MBBS
I need to append '--' according to the domain level. Is it possible using a sql query. or alternatively can I have any other control to show this data.
© Stack Overflow or respective owner