The simplest solution to this is - put a Label say "LabelMenu" in aspx page. create a member function in .cs page.
Within that function write code to do the the following task:
1. Get your menu data from your database and bind them to a dataset.
2. Create a string type variable where you can write your html part of the menu. Initialize it with the intial HTML. Say - string MyString = "<div class='mystyle'>";
3. Write a foreach to loop to get thru the dataset and use the string type variable to integrate the html menu with menu name and URL fetched from database.
4. once the dataset is traversed, write the closing HTML tags, write the sting to the Label.
5. Your menu is ready.
Please see the below example.
private void fnPopulateMenu()
{
DataSet DsMenu = new DataSet();
string TblMenu = "<table class='MenuCss'><tr>";
.....
foreach (string Drow in DsMenu.Tables[0].Rows)
{
TblMenu += "<td><a href='"+Drow["MenuLink"] +"'>"+Drow["MenuName"]+"</a></td>";
}
TblMenu = "</tr></table>";
LabelMenu.Text = TblMenu;
}