Click to See Complete Forum and Search --> : How to hide a Dropdownlist control ?


nitincop
March 22nd, 2006, 03:23 AM
what are the ways in which a dropdownlist control can be hidden behind another control placed on it in ASP.Net?

HairyMonkeyMan
March 22nd, 2006, 04:21 AM
Not with internet explorer my friend... this is a bug. You could make it invisible if there is another control on top of it though.

HanneSThEGreaT
March 22nd, 2006, 05:14 AM
You can possibly consider CSS, and the Z-Index properties.
Here's an example:
<html>
<head>
<style type="text/css">
.x
{
position:absolute;
z-index:1
}
</style>
</head>
<body>
<h1>This is a Heading</h1>
<Select name = "test" class="x">
<option "test1" Value "Test1">Test1
</select>
<p>Default z-index is 0. Z-index 1 has higher priority.</p>
</body>
</html>
This will work in IE
for Netscape Navigator, you could use the <Layer> tag, if I remember correctly.

nitincop
March 22nd, 2006, 11:26 PM
The dropdownlist control shows up , when a panel with many other controls are placed over the dropdownlist control, wherein these controls are dynamically placed, what could i do to hide it other than making the control invisible, kindly suggest.