求教:如果将多重分类绑定到一个DropDownList?
库categories:
+-------+--------------+------------------+
| ID | categoryname | parentcategoryID |
+-------+--------------+------------------+
|1 | a | 0 |
+-------+--------------+------------------+
|2 | b | 1 |
+-------+--------------+------------------+
|3 | c | 0 |
+-------+--------------+------------------+
|4 | e | 2 |
+-------+--------------+------------------+
例表形式为:
<asp:ListItem Value="0">a</asp:ListItem>
<asp:ListItem Value="2">a>b</asp:ListItem>
<asp:ListItem Value="4">a>b>e</asp:ListItem>
<asp:ListItem Value="3">c</asp:ListItem>