TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Akash Patel
NA
117
40.6k
Create Accordion for menu and submenu
Nov 1 2018 8:54 AM
I want to create a vertical menu with submenu in asp.net using bootstrap. I created with ul and li. Menu are displayed but when clicked submenus are not displayed. below is the code.
-------------------------------------------------------------------------------------------
<div class="left-side">
<h3 class="agileits-sear-head">
Food Preference</h3>
<ul>
<asp:DataList ID="dlCategory" runat="server" RepeatColumns="1" RepeatDirection="Vertical">
<ItemTemplate>
<li class="collapse"><i class="fa fa-plus"></i><span><a href="#collapse" data-toggle="collapse">
<%#Eval("Category_Name") %></a></span></li>
<ul id="collapse" class="collapse">
<asp:DataList ID="dlProducts" runat="server" RepeatColumns="1" RepeatDirection="Vertical">
<ItemTemplate>
<li><span><a href="#">
<%#Eval("Product_Name") %></a></span></li>
</ItemTemplate>
</asp:DataList>
</ul>
</ItemTemplate>
</asp:DataList>
</ul>
<%-- <ul>
<li>
<input type="checkbox" class="checked">
<span class="span">Vegetarian</span>
</li>
<li>
<input type="checkbox" class="checked">
<span class="span">Non-Vegetarian</span>
</li>
</ul>
--%>
</div>
-------------------------------------------
Reply
Answers (
2
)
I have question regarding to load chart on page load?
Auto sign out user when session expired