J
Jeff
hey
asp.net 2.0
if I add the code below as the code executed when a button is clicked, then
a menu item is added to the menu. But if I add the same code to the
Page_Load event of a webpage, the menu item isn't added
Here is the code:
MenuItem menuItem = new MenuItem("Menu item text", "menuitemvalue",
"imageurl", "navigateurl");
Menu1.Items.Add(menuItem);
Any ideas why this don't work in the Page_load event?
jeff
asp.net 2.0
if I add the code below as the code executed when a button is clicked, then
a menu item is added to the menu. But if I add the same code to the
Page_Load event of a webpage, the menu item isn't added
Here is the code:
MenuItem menuItem = new MenuItem("Menu item text", "menuitemvalue",
"imageurl", "navigateurl");
Menu1.Items.Add(menuItem);
Any ideas why this don't work in the Page_load event?
jeff