473,799 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dropdownlist overlaps menu control

38 New Member
I have an aspx page containing a menu and some other controls including dropdown list.The problem is when i hover the mouse on menu control it displays all menu items.

But the part where dropdown control is renderd the menu part is gone behind the dropdown. I heard that it is aproblem of IE6 and related to z-index and all.



My sceario is like this:
1.I have a user control which contains the menu .This also contains some javascript to generate the menu depending on the menu item selected.
2. I put this user control to a Masterr page
3. There is a dropdown list (which is the culprit) in content page which is always on top of th menu.

I came to know that iframe is a solution. But I cant make it workable in my scenario.

Could anybody lend a helping hand here.

Thanks in advance,

Jaleel
Apr 1 '08 #1
2 2347
Ashlewis
20 New Member
This sounds like a styling problem to me?
Are you using a stylesheet?
If so this can be sorted using z-index as you stated.
The z-index is the ordering of how somthing appears on your page, a low z-index will be further back that somthing with a higher z-index.and therefore a high z-index "object" will overlap the lower z-indexed one.

I dont really know how you've set up your drop down menu but somthing like this should work

put the CONTENT of your menu in a div.
set the styling of your menu div to have z-index of say 100.

now set whatevers overlapping your menu in a div too
and set that div to have z-index of say 1

you must set the zindexs of both divs or they wont interact with eachother how you wish.

If this isnt particularly possible to your design and you cant find a solution, id suggest scrapping your javascript menu and many going with a pure css dropdown menu,theres plenty of prebuilt ones online.
Apr 1 '08 #2
jaleel
38 New Member
Thanks Ashlewis .

I came to knew from various articles that dropdown list and list boxes are windows controls and they do not have z-index property. Actually I tried ur suggestion but not working in my case.

I heard about a solution of using <iframe>. But struggling to makr it working in my application.
Apr 3 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
5483
by: DotNetJunky | last post by:
I have built a control that runs an on-line help system. Depending on the category you selected via dropdownlist, it goes out and gets the child subcategories, and if there are any, adds a new dropdownlist to the screen for selection. This continues until there are no children, and then it checks for a help article list based on that last selection and displays actual articles for display. Adding the controls and getting everything...
10
5326
by: Sacha Korell | last post by:
I'm trying to load a drop-down list with all DropDownList control names from another page. How would I be able to find those DropDownList controls? The FindControl method will only find a certain control by id, but I want to find all controls of a certain type (DropDownList in this case). Is there an easier way than to get a control count of the page, loop through all controls on that page, examine their type and, if they're a...
1
1363
by: I am Sam | last post by:
I have two DropDownList controls in a web form and I need to test which control has changed without wrapping it in a SelectedIndexChange Event. How do I go about this issue? I have tried the following which works sort of but the first time I change the selection in one of the DropDownList controls it returns a SelectedValue of null. public string ctrlSelection { get {
2
2265
by: ha_shaikh | last post by:
In our web application(ASP.Net), we have database driven menus that are of dropdown style on getting focus (a requirement). We've used Javascript Menu Object for creating these menus. On different pages of the application, we are using ASP.Net some DropDownLists. Now the problem is that when any menu drops, these dropdownlists disappear as long as the menu is dropped and reappear when the menu is folded back. We are unable to find any...
2
1277
by: Ken Carter | last post by:
Web form VS 2005... DropDownList has text describing links and url's. What I want to do is have the DropDownList1.SelectedIndexChanged event perform a hyperlink to the Value in the control at the selected index position. I've looked high and low for an example of this under ASP.NET 2.0 but have yet to find any thing close. What VB function do I use in the code behind
2
16101
by: glenn | last post by:
Hi folks, I am trying to determine which item in a DropDownList Web control has been selected. I have posted an OnSelectedIndexChanged subroutine in my code with a reference to the subroutine in my asp tag as shown here: <asp:DropDownList id="ddlTo" runat="server"
15
3132
by: glenn | last post by:
Hi folks, I have a DropDownList in a DataGrid that is populated from records in a database. I want to add a value that might be a string such as "Select a Company" for the first item since an OnSelectedIndex event is not fired if you select the first item. Does anyone know of an easy way to do this?
1
1885
by: singmadhan | last post by:
Hi Frnds, I am working in an ASP.Net Application and creating a DHTML menu using JavaScript. There is a drop down list box below the menu, when ever I am dragging the menu the DropDownList box overlaps the menu and the menu item in that particular place is hidden.. Cld anyone pls give me a solution reg this asap..
3
6576
by: =?Utf-8?B?RGVlcGE=?= | last post by:
Hi All, I have a webform in asp.net framework 1.1 where the dropdownlist is populated with list of locations from the database. The depending on the list selected, the user will be able to see functions associated for that location. Ex: Location: Charleston Functions: Add, Delete, Cancel, Edit Location: Los Angeles
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10484
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10228
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.