how to create Multilevel dropdown using asp tags

时间:2017-05-16 09:34:59

标签: c# asp.net

I have a dropdown in ASP.net webforms, I want to create a another dropdown based on first level selection.

Say, 1.Furniture 2.Electronics -> i.TV ii.Mobile

Is it possible to do like above only by using asp tag or adding second level like TV and Mobile in C# code.

`<asp:DropDownList ID="ddlCategory" runat="server" Width="200px">
                <asp:ListItem Text="Select Category" Value="0"></asp:ListItem>
                <asp:ListItem Text="Furniture" Value="1"></asp:ListItem>
                <asp:ListItem Text="Electronics" Value="2"></asp:ListItem>
            </asp:DropDownList>`

Note: I don't want to display it dynamically even though it is preferable. Please help me in this problem

1 个答案:

答案 0 :(得分:0)

您可以使用Bootstrap 3.0.0下拉菜单

访问此链接

Click Here