I have a category Table and a subcategory Table
In category Table
| Id | category | image |
In subcategory Table
| Id | subcategory | image | description | cid |
The ID is identity in both the tables ..
CID in subcategory table refers to ID in category table .
I have to design horizontal menu and data should populate dynamically from database.

Iftikar HussainRank #423 · 5.9K reputationPosted Jul 28, 2013, 10:23 PM EDT
Please refer the below link
http://www.codeproject.com/Tips/354696/Dynamically-populating-menu-items-from-the-databas
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 28, 2013, 10:43 PM EDT
Refer to this link it quite related to your scenario
http://www.dotnetspark.com/kb/3621-using-datalist-to-list-categorysubcategory.aspx