Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to try to make list group item dynamic in asp.net my database is in sql2008.

Below is the reference link ..... in this the menu on side bar is static right now but i want to make it dynamically and data comes from sql server..

touchscreenindia.com/tks/Home.aspx


XML
<div class="col-md-3">


  <div style="width:200px;height:120px; position:absolute">
   <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

   <a href="#demo3" class="list-group-item list-group-item" data-toggle="collapse" data-parent="#MainMenu">Department of Arts</a>
   <div class="collapse" id="demo3" style="border:none; padding:0px 0px 0px 20px; ">



       <a href="#SubMenu1" class="list-group-item" data-parent="#SubMenu1">  Fine Arts  <span class="fa fa-caret"></span></a>
   <a href="#SubMenu2" class="list-group-item" data-parent="#SubMenu2">Child Art<i class="fa fa-caret-down"></i></a>
   <a href="#SubMenu3" class="list-group-item" data-parent="#SubMenu3">Photography<i class="fa fa-caret-down"></i></a>
   <a href="#SubMenu4" class="list-group-item" data-parent="#SubMenu4">Sculpture<i class="fa fa-caret-down"></i></a>

     </div>
Posted
Updated 9-Jun-15 1:38am
v3

1 solution

DataBound TreeView is what you want.

DataBound TreeView[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900