Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to populate a number of files on my menu bar from a sql table, and number of files must be displayed beside Categories line. And code I need is in vb.net to populate number of files on menu bar please help.

XML
<ul id="menu">
    <li><a href="#">Home</a></li>
    <li>
        <a href="#">Categories</a>
        <ul>
            <li><a href="#">CSS</a></li>
            <li><a href="#">Graphic design</a></li>
            <li><a href="#">Development tools</a></li>
            <li><a href="#">Web design</a></li>
        </ul>
    </li>
    <li><a href="#">Work</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
</ul>
Posted
Comments
ZurdoDev 17-Jan-15 21:17pm    
Where are you stuck?
Member 11377187 19-Jan-15 1:13am    
I want to display the content of each menu in bracket from database. For Example If Categories tab have 15 number of files It must be displayed (15%) of fles beside categories section. I need code for same.
ZurdoDev 19-Jan-15 8:26am    
No one is going to write all the code for you.

To do this, just call a stored procedure that returns the menu items and then use a StringBuilder to build up your ul string.

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