473,809 Members | 2,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drop down menu and dropdownlist control problem

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 reason and any solution for this. Can
somebody help us out of this?

Thanks in advance.

Nov 19 '05 #1
2 2265
Ha:
Hopefully you'll be glad to know this is really a common problem. First
off, i want you to understand that this is a "feature". Let me explain why.

a select is a windowed control and doesn't participate in the normal
z-indexing. So, without this "fix" when your menus drop, if they dropped
over a select, the select would appear on top of it. here's a simple
example you can look at:
<html><body>
<div style="backgrou nd:#aaa;border: 1px solid #000;"
onMouseOver="th is.style.positi on = 'absolute';this .style.height =
'300px';">Mouse Over Me</div>
<select></select>
</body>
</html>

In IE (in firefox it'll run fine), the select will "bleed" or be seen
through the div, no matter what z-index you do or anything.

To get around this, many menu controls use some simple javascript. Whenever
a menu drops, get all the <SELECT>'s on the page and make them invisible
(whihc you can do in like 3 lines of code). It's a pretty brute force
method, but for a while it was the only way. So now you know :)

Recently a new method has come to light to solve the problem, involvnig
iframes. you can read up more on it here:
http://dotnetjunkies.com/WebLog/jkin...07/21/488.aspx

The menues in ASP.Net 2.0 will use this feature (it's still a hack, but
atleast it gets the job done).

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
<ha*******@hotm ail.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
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 reason and any solution for this. Can
somebody help us out of this?

Thanks in advance.

Nov 19 '05 #2
Thankyou so much for you reply and clearing me the problem. Now I can
understand the problem but the issue is that it doesn't look good in a
professional web application. Also, I have seen some websites developed
in ASP.Net and having dropdown menu but the drop down lists neither
disappear nor go behind the menu. Anyways I'll check if this iFrame
solution works in my application or not.
Thanks once again

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1578
by: Miguel Dias Moura | last post by:
Hello, I have a Drop Down List with 3 options. I want to redirect to a new page when an options is selected. I don't want to use a button. The redirection should be fired when the option is selected. I have an ASP.net / VB page with a Drop Down List named "my select" as follows: <asp:DropDownList AutoPostBack="true" ID="myselect" runat="server">
3
26337
by: Stephen Adam | last post by:
Hi there, I'm sure i'm missing something really simple here, all i want to do is get the value of the selected item in a list box. Even after much fiddling about last night I still could not get my code to work. Below is some code which highlights my problem. All I want to do is set the lable control's text property to the value of the selected drop down list value - in this example i've shown the three ways i've tried. Please help!
5
4234
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1); System.Data.SqlClient.SqlCommand dbCommand1 = new System.Data.SqlClient.SqlCommand();
4
1138
by: QT | last post by:
Dear Sirs, I used a drop down menu with collectin of my required items. There is no problem to sellect a items from drop down menu. But when I try to write someting insede drop down without click right arrow, I can write. How can I protect from writing? Best Regards
17
14833
by: Aussie Rules | last post by:
Hi, I want to have a single line combo box dropdown, but where i can selected multiple items in the drop down via a check box... I can see one in the standard tool box... is there one ? If not any suggestions as to where to get one from.
2
8635
by: clickon | last post by:
I am using ASP.net 2.0 and trying to take advantage of the updated data editing facilities provided through the SQLDataSource control and the DetailsView control. The data is a record from a customer complaints table and one of the fields on the DetailsView control is called ComplaintType. The field is a template field and in insert mode and edit mode i have used a DropDownList control bound to a set of keys and values in a ComplaintTypes...
2
1471
by: newsgroups.jd | last post by:
Thanks for any advice, help in advance... I have 3 dropdownlist that populate based on choice in the previous (nested essentially) Problem is when I hit the back button and make a change in the second or thrid dropdownlist it does not always redirect to the correct site... What I really want to happen is if the back button is pushed then everything clears and all starts from
8
7582
by: Ed Dror | last post by:
Hi there ASP.NET 2.0 VB & SQL Express Lest take Northwind Categories Products as example I create a table that hold these two together and I create a stored procedure like select ProductID, ProductName, CategoryID, from tblCategoryProducts Where (CategoryID = @CategoryID)
0
1501
by: john_mcmahon | last post by:
I'm having issues populating a second drop down menu that's dependent upon a selection in the first menu. When I select an option from the first menu, the second menu remains disabled, i.e. unable to select an option. I'm confident that most of my code is correct because of testing that I completed with it. For instance, when I remove the ParentControlID attribute from the second control and un-comment out: // string sPlantTypeID = "2";...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10637
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
10376
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...
0
10115
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...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
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
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.