Creating an Uppermost Layer
-
I have created a User control that I want to appear above all controls at certain times within the web page (it's a non-moveable message box). I have encapsulated this User control within a DIV tag and have given it highest Z-INDEX. The problem I am having is that it displays on top of all my text boxes and labels, but my DropDownLists (asp controls, not html ones) appear over the top of it (even though they have a lower Z-Index). Can anyone suggest a solution? Thanks Jason
-
I have created a User control that I want to appear above all controls at certain times within the web page (it's a non-moveable message box). I have encapsulated this User control within a DIV tag and have given it highest Z-INDEX. The problem I am having is that it displays on top of all my text boxes and labels, but my DropDownLists (asp controls, not html ones) appear over the top of it (even though they have a lower Z-Index). Can anyone suggest a solution? Thanks Jason
-
How do you set z-index property? See the MSDN and make sure you set it correctly like its sample. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
I have removed Z-INDEX from ALL controls on the page and have only set it for this one control to 1. It still shows above all Text boxes and labels, but not DropDownLists. For peace of mind I also tried setting Z-INDEX to 2000 (so nothing is likely to be lower than it), but that didn't work either. Jason
-
I have created a User control that I want to appear above all controls at certain times within the web page (it's a non-moveable message box). I have encapsulated this User control within a DIV tag and have given it highest Z-INDEX. The problem I am having is that it displays on top of all my text boxes and labels, but my DropDownLists (asp controls, not html ones) appear over the top of it (even though they have a lower Z-Index). Can anyone suggest a solution? Thanks Jason
Last time I checked, that problem is inherent to drop down list controls, both HTML and ASP, and it inherent to the way that IE/Windows renders the control. For example, many sites use DIV-based DHTML menus, and when they pop up over drop-down lists... the drop-down list shows through. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
-
Last time I checked, that problem is inherent to drop down list controls, both HTML and ASP, and it inherent to the way that IE/Windows renders the control. For example, many sites use DIV-based DHTML menus, and when they pop up over drop-down lists... the drop-down list shows through. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
Do I have any other options?
-
Do I have any other options?
Two options. Place your dropdown in a div and set its z-index. Or set the visibility of the dropdown to hidden when you want the div to be placed over it.
-
Two options. Place your dropdown in a div and set its z-index. Or set the visibility of the dropdown to hidden when you want the div to be placed over it.
Thanks
-
Do I have any other options?