Hi Guys,

I have a problem with my ASP .net project. The problem that I have
is that i wanne build my main and submenu without the asp menu
controls.

This is my code that receive the data from my mysql database :

Code:
//VARS
        private MySqlConnection DB_Connection;
        protected void Page_Load(object sender, EventArgs e)
        {
            //DB Object
            lib.libMySQL libMySQL = new lib.libMySQL();
            
            //DB Open Connection
            DB_Connection = libMySQL.open();

            //DB Query
            string DB_QUERY =   "SELECT * " +
                                "FROM fe_mainmenu as fmm " +
                                "WHERE Visibility = 1 " +
                                "ORDER BY Priority DESC";
            
            //DB Execute Query
            MySqlCommand DB_CMD = new MySqlCommand(DB_QUERY, DB_Connection);

            //DB get mainMenu
            using (MySqlDataReader DB_RDR = DB_CMD.ExecuteReader())
            {
                if (DB_RDR.HasRows)
                {
                    while (DB_RDR.Read())
                    {
                        

                    }
                    DB_RDR.Close();
                }
            }
I have in my html code a var called : menuItems
So i wanne full this var with the menu items. Can you help me and put
me in the right direction?