Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 下拉列表中的去中心化_Asp.net_Drop Down Menu - Fatal编程技术网

Asp.net 下拉列表中的去中心化

Asp.net 下拉列表中的去中心化,asp.net,drop-down-menu,Asp.net,Drop Down Menu,我有数据表位置(LocaID、LocaName、Parent)。现在,我想像这样绑定到dropdownlist: Parent 1 ----Child 1.1 ----Child 1.2 Parent 2 ----Child 2.1 ----Child 2.2 Parent 3 有没有办法做到这一点?你可以用这个:父母不能被选择@शेखर 父母可以selected@SankarRaj这不适合我的情况,在我的dropdownlist中,可以选择parent我想你应该为此寻找一些jqu

我有数据表位置(LocaID、LocaName、Parent)。现在,我想像这样绑定到dropdownlist:

Parent 1

----Child 1.1

----Child 1.2

Parent 2

----Child 2.1

----Child 2.2

Parent 3

有没有办法做到这一点?

你可以用这个:父母不能被选择@शेखर 父母可以selected@SankarRaj这不适合我的情况,在我的dropdownlist中,可以选择parent我想你应该为此寻找一些jquery插件。请参阅此链接,希望对您有所帮助。