I am not sure how to approach this issue. The application is built based on custom template classes, not using MasterPages. There is a BaseClass and a page that inherits the BaseClass.
BaseClass overrides the Render method and CreateChildControls.
I have added a menu control :
<asp:Menu ID="mnuRoot" runat="server" DataSourceID="SiteMapDataSource1"
Orientation="Vertical" DisappearAfter="300" DynamicHorizontalOffset="0" EnableTheming="False" ForeColor="#000000" Font-Size="10" Font-Names="Verdana" SkipLinkText="" Width="115" CssClass="menu_Menu" >
<StaticMenuItemStyle BorderWidth="0" BorderStyle="none" />
<DynamicMenuStyle CssClass="menu_Menu" HorizontalPadding="20" />
</asp:Menu>
If I add the following line:
<DynamicHoverStyle BackColor="ActiveCaption" />
I get this error:
Using Menu.DynamicHoverStyle requires Page.Header to be non-null (e.g. <head runat="server" />).
How to get rid of this error ? I would like to keep the existing custom templates but I don't know how to set up <head runat="server" /> .
Thanks