Keeping an AJAX dropdownextender on top of all DIV

Posted on 2014-10-28
Last Modified: 2014-10-29
I have a dropdownextender/listbox that I'm using. Because of it's placement on my page, it falls behind other DIVs.
Is there a way to force the extender to always appear on top when it is activated?

(<asp:Label ID="lblCustomer" runat="server" Text="Label"></asp:Label>)
    <cc1:DropDownExtender ID="ddeCustomer" DropDownControlID="ListBox1"
        runat="server" DynamicServicePath="" Enabled="True" TargetControlID="lblCustomer"

    <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True">

Open in new window

Question by:Mike Miller
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 17

Accepted Solution

selvol earned 500 total points
ID: 40409791
Try this
Adding this to the page head,,,

Open in new window

The z-index specifies the level of an object.

i.e.  2 would cover or be above 1 and so on 999 is just to be safe.


Author Comment

by:Mike Miller
ID: 40409986
I assume you mean


Open in new window

(your tags were reversed)

Which does not work

Author Comment

by:Mike Miller
ID: 40409987's a dropdownextender so I have to click a hover. Not sure if that's relevant to your proposed solution or not.

Author Comment

by:Mike Miller
ID: 40409994
ok I added this to my CSS


Open in new window

then changed my list box to

 <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True" CssClass="alwaysontop">

Open in new window

Worked like a charm. Thanks!
LVL 17

Expert Comment

ID: 40411723
Yes, thank you for correcting that fatal mistake I made.

Glad to help..

Way to take the idea and run with it.
It's always a better feeling helping someone that takes a little bit
of info and learns from it. Then fixes the problem there way.

Thank you

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

734 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