search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to add dynamic MenuItems?

Asked by Feras
16 years ago.

I want to add menu items based on specific sql query, using a loop.
I've try this as example:
MenuItem mi;
mi.Value = "google";
mi.NavigateUrl = "www.google.com";
this.MenuPilotHyperlink1.MenuItems.Add(mi);

But it didnt work.
Your help will be much appreciated
Thank you

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.