I am using a System.Web.UI.WebControls.Menu on my site. Today I tried to move it into a master page and it all broke down.
The menu loads but appears fully expanded until it is moused over when it contracts itself.
Even when the menu has contracted itself mousing over menu items makes squares appear on the screen and shows child menu items under the wrong parent.
Viewing source shows that the most obvious thing that has changed is now all menu styles, names and ids begin with an underscore character (i.e. are prefixed with _ctl0_)
I've confirmed that this is the problem by saving the source and replacing all instances of "_ctl0" with "ctl0" and the menu works fine again.
How can I get this _ct10 (which I assume is the ClientID of the master page?) to be something compliant with HTML specifications and (more importantly for me) the menu code?