Adding menu items ASP.net 2.0
Posted on 2007-08-12
Hello, I'm new to menus and I need it to populate off of my database table "Categories". I'm getting an error that says "cannot cast string to menu item". Here's my code:
Dim omenuCategory As Menu = New Menu()
omenuCategory = mpContentPlaceHolder.FindControl("menuCategory")
"Categories" is a nvarchar. I'm afraid I'm not doing it right and my books seem insufficient, does anyone have some sample code for adding categories and sub-menu items?