Results 1 to 4 of 4
  1. #1
    manik's Avatar
    manik is online now Om Shanti!
    Join Date
    Apr 2008
    Location
    Boston, USA
    Posts
    13,172
    Thanks
    744
    Thanked 699 Times in 550 Posts
    Blog Entries
    4
    Feedback Score
    4 (100%)

    Default Asp Menu Hiding Behind Page Elements

    If your asp menu elements hide behind other elements on the page, this could be a potential solution for you.

    Surround the asp menu in a div with a z-index style with it.

    <div style="z-index:200">
    <asp:Menu ID="Menu1" runat="server" StaticDisplayLevels="1">
    <Items>
    <asp:MenuItem Text="File" Value="File">
    <asp:MenuItem Text="New" Value="New"></asp:MenuItem>
    <asp:MenuItem Text="Open" Value="Open"></asp:MenuItem>
    </asp:MenuItem>
    </Items>
    </asp:Menu>

    </div>
    Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK


  2. #2
    csm's Avatar
    csm
    csm is offline Sophomore
    Join Date
    Sep 2010
    Location
    Mallorca/Spain
    Posts
    93
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Blog Entries
    2
    Feedback Score
    0

    Default

    This seems to be a CSS related problem, not ASP
    Chief Web Officer / Front-End Developer / System Engineer
    My Portfolio - My Ezine Articles Profile

  3. #3
    manik's Avatar
    manik is online now Om Shanti!
    Join Date
    Apr 2008
    Location
    Boston, USA
    Posts
    13,172
    Thanks
    744
    Thanked 699 Times in 550 Posts
    Blog Entries
    4
    Feedback Score
    4 (100%)

    Default

    Quote Originally Posted by csm View Post
    This seems to be a CSS related problem, not ASP
    thats a problem comes from the asp .net menu control. css is in rescue of course.
    Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK


  4. #4
    Join Date
    Nov 2010
    Location
    Delhi
    Posts
    103
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Feedback Score
    0

    Default

    Try below code, hope it helps.
    protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
    {
    System.Web.UI.WebControls.Menu menu = (System.Web.UI.WebControls.Menu)sender;
    SiteMapNode mapNode = (SiteMapNode)e.Item.DataItem;

    System.Web.UI.WebControls.MenuItem itemToRemove = menu.FindItem(mapNode.Title);

    if (mapNode.Title == "Node")
    {
    System.Web.UI.WebControls.MenuItem parent = e.Item.Parent;
    if (parent != null)
    {
    parent.ChildItems.Remove(e.Item);
    }
    }
    }

Similar Threads

  1. Replies: 11
    Last Post: 03-05-2010, 11:43 PM
  2. Man Arrested for Spying Hiding Under Man's Bed
    By webdigo in forum General Talk
    Replies: 7
    Last Post: 08-13-2009, 07:21 AM
  3. SEO and Hiding HTML
    By manik in forum Search Engine Optimization
    Replies: 8
    Last Post: 06-29-2009, 12:56 AM
  4. My CSS Menu - Menu Generator
    By tkien in forum Reviews
    Replies: 1
    Last Post: 12-29-2008, 11:11 PM
  5. Yahoo hiding behind Google?
    By manik in forum Yahoo
    Replies: 1
    Last Post: 05-14-2008, 06:06 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •