I would like to set the css styles for my menu control in the code behind. I tried...
Menu1.Orientation = Orientation.Horizontal;
Menu1.CssClass = "menu";
Menu1.StaticMenuStyle.CssClass = "static-menu-style";
Menu1.StaticHoverStyle.CssClass = "static-menu-style";
Menu1.DynamicMenuStyle.CssClass = "dynamic-menu-style";
but it doesn't work. is there something I am missing? Any help would be much appreciated.