ASP.NET - menu control - Asked By vicky nehru on 19-Aug-10 06:02 AM


in my project submenu is not shown in the runtime. . .do u know any solutions. . .below i am added the coding and screen shots.
<tr>
    <td style="height: 161px;width:100%"> &nbsp;
      <asp:Image ID="Image1" runat="server" Height="160px" Style="z-index: 100; left: 1px;
        position: absolute; top: 5px" Width="100%" ImageUrl="~/image/Gulab.jpg" />
    </td>
    </tr>
    <tr>
    <td style="height: 2px"><asp:Menu ID="Menu1" runat="server" Orientation ="Horizontal" style="left: 9px; top: 70px" Width="100%" Height="30px" BackColor="#804040" BorderColor="Navy" Font-Bold="True" Font-Italic="False" Font-Names="Times New Roman" ForeColor="#FFFFC0">
      <Items>
        <asp:MenuItem Text="CustomerDetails" Value="CustomerDetails" NavigateUrl="~/Customer.aspx"></asp:MenuItem>
        <asp:MenuItem Text="ServiceCenter" Value="ProductService" NavigateUrl="~/Service.aspx"></asp:MenuItem>
        <asp:MenuItem Text="ReturnEntries" Value="ReturnEntries" NavigateUrl="~/ReturnEntry.aspx"></asp:MenuItem>
        <asp:MenuItem NavigateUrl="~/UpdateLogin.aspx" Text="ChangingPassword" Value="PasswordChanged">
        </asp:MenuItem>
        <asp:MenuItem Text="Reports" Value="Reports">
          <asp:MenuItem NavigateUrl="~/CustomerGridView.aspx" Text="Customer Reports" Value="Customer Reports">
          </asp:MenuItem>
          <asp:MenuItem NavigateUrl="~/ServiceGridView.aspx" Text="ServiceCenter Reports" Value="ServiceCenter Reports">
          </asp:MenuItem>
          <asp:MenuItem Text="ReturnEntry Reports" Value="ReturnEntry Reports"></asp:MenuItem>
        </asp:MenuItem>
        <asp:MenuItem NavigateUrl="~/index.aspx" Text="Log Out" Value="Log Out"></asp:MenuItem>
      
      </Items>
      <DynamicMenuStyle BackColor="Black"/>
    </asp:Menu></td>
</tr>


Sagar P replied to vicky nehru on 19-Aug-10 06:09 AM
I think problem is because of

<DynamicMenuStyle BackColor="Black"/>

In this also give color property like;
<DynamicMenuStyle BackColor="Black" color:"#00346F;"/> Specify some color according to your need


So that it will show the menu with some different color. Problem with this only......