Here is some code that will fix the main menu so that even though is is automatically generated by page.menu.xml.config it can have multiple first-level menus.
Code:
Private Sub FlattenAutoMenu()
If aspnetMenu IsNot Nothing Then
Do While aspnetMenu.Items(0).ChildItems.Count > 0
aspnetMenu.Items.Add(aspnetMenu.Items(0).ChildItems(0))
Loop
aspnetMenu.Items.RemoveAt(0)
End If
End Sub
Put a call to this right after the call to SetupMenu in the OnPreRender Sub.
Basically this will remove the single first level item and make all the second level items first level items.
Last edited by cjbarth; 05-17-2010 at 06:39 AM.
ML9.3.1.1
SQL 2012 Express
VS 2010
Azure VM