Need help with repeating the following code in vb.net/asp.net:
<ul id="prod_nav" class="clearfix">
<li class="top"><a href="05-Pink-02-Category-List.html" class="top_link"><span class="down">Body and Trim</span></a>
<ul class="sub">
<li class="clearfix">
<ul>
<li><a href="05-Pink-03-Products-List.html">Panels</a></li>
<li><a href="05-Pink-03-Products-List.html">Tow Bars</a></li>
</ul>
</li>
</ul>
</li> <li class="top"><a href="05-Pink-02-Category-List.html" class="top_link"><span class="down">Brake Friction</span></a>
<ul class="sub">
<li class="clearfix">
<ul>
<li><a href="05-Pink-03-Products-List.html">Drums</a></li>
<li><a href="05-Pink-03-Products-List.html">pads</a></li>
<li><a href="05-Pink-03-Products-List.html">discs</a></li>
</ul>
</li>
</ul>
</li>
Here is what I have so far:
<asp:Repeater ID="repeaterMyList" Runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<li class="top"><a href="javascript: void(0)" class="top_link"><span class="down"></span><%#DataBinder.Eval(Container.DataItem,"groupname")%></a>
<ul class="sub">
<li class="clearfix">
<ul>
<li><a href="05-Pink-03-Products-List.html"><%#DataBinder.Eval(Container.DataItem,"subgroupname")%></a></li>
</ItemTemplate>
<SeparatorTemplate>
</ul>
</SeparatorTemplate>
<FooterTemplate>
</li>
</ul>
</li>
</FooterTemplate>
</asp:Repeater>
</ul>
Issue: The datatable has all the necessary columns but only one master <li>
is being displayed.
If you can assist me, it would be greatly appreciated. Thank you!
GROUPID GROUPNAME SUBGROUPID SUGROUPNAME
BO Body & Trim PANE-BO Panels
BO Body & Trim TOWS-BO Tow Bars
BR Brake Friction DRUM-BR Drums
BR Brake Friction PADS-BR Pads
BR Brake Friction KITS-BR Accessories-Fit Kits
BR Brake Friction DISC-BR Discs
BR Brake Friction SHOE-BR Shoes
CA Cables CABL-CA Cables
CA Cables CAFP-CA Cable Fitment Parts
CL Clutch Friction SSCL-CL Switches, Sensors - Clutch
CL Clutch Friction CLPT-CL Clutch Parts, Flywheels
CL Clutch Friction CLFP-CL Fitting Parts
CO Cooling & Heating RCTS-CO Radiator Caps, Thermostats
CO Cooling & Heating SSCH-CO Switches, Sensors - Cooling & Heating
CO Cooling & Heating WHOP-CO Water Hoses, Pumps