Solved

ASP.NET 2.0 Menu control - dropdown items hidden under other page controls

Posted on 2007-04-03
3
463 Views
Last Modified: 2008-03-03
Surely I can't be the only one to experience this...  I have a menu control on the top of my page, which has submenu items dropping down off the main items.  The problem is, when I try to select one of the submenu items, it becomes hidden underneath another control on the page.  Any way that I can make the menu stay on the top of everything else?
As an extra, some of my menus, when rendered, show up in red letters when I specified them to be blue.  

Any ideas?
0
Comment
Question by:adwooley2
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
jinn_hnnl earned 500 total points
ID: 18848950
can you paste a part of your menu source code ?...

Anyway, If you place your menu in Master page (most of ppl does) this problem will be gone. Or else, put your menu in a <div> and set the z-order as big as you thing it fit (the bigger, the closer to the screen)

<div style="z-order:10">
      <asp:Menu ... your menu>
</div>

The color thing, I guess you set the wrong property (cause if you select auto format there will be generated code for static and dynamic menu items, blah blah), may be you modified wrong property

Hope this help

JINN ^^
0
 

Author Comment

by:adwooley2
ID: 18849006
I gave that <div> thing a try, but it didn't work.  Thanks for the thought though.  I had the menu control in a user control.... THAT what caused the problem.
0
 
LVL 10

Expert Comment

by:jinn_hnnl
ID: 18849718
ohh I think I made it in not enough infor way: it should be z-index, instead of z-order.

<div style="z-index:10; position:relative">
      <asp:Menu ... your menu>
</div>

The z-index only worNote: Z-index only works on elements that have been positioned (eg position:absolute;)... it's nice to know when you wanna do something concerning about stack order.

Anyway, gj you got it yourself ^^.

Thanks for the credit ^^

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question