Slow to load dropdown when menuitem added dynamically

Nov 4, 2010 at 3:56 AM
Edited Nov 4, 2010 at 4:17 AM

Any ideas why the menu is very slow to populate the dropdowns when the menuitems are added dynamically in code behind??

Thanks

 

Edit: Worked it out, gotta add menuitems in OnPreRender() not in Page_Init()