When you upgraded the site, Visual Studio most likely set
the controlRenderingCompatibilityVersion
property[
^] in the
web.config
file to
"3.5"
. As a result, the
Menu
control will render using a
<table>
element with inline styles.
To fix this, you can either remove the
controlRenderingCompatibilityVersion
setting from the
<pages>
element in your
web.config
file, or you can set
the RenderingMode
property[
^] on the
Menu
control to
List
:
<asp:Menu ID="Menu1" runat="server" RenderingMode="List" ...