Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Creating an Uppermost Layer

Creating an Uppermost Layer

Scheduled Pinned Locked Moved ASP.NET
htmldatabasehelpquestion
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jason Pyke
    wrote on last edited by
    #1

    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

    M J 2 Replies Last reply
    0
    • J Jason Pyke

      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

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      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

      J 1 Reply Last reply
      0
      • M Mazdak

        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

        J Offline
        J Offline
        Jason Pyke
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • J Jason Pyke

          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

          J Offline
          J Offline
          John Kuhn
          wrote on last edited by
          #4

          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.

          J 1 Reply Last reply
          0
          • J John Kuhn

            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.

            J Offline
            J Offline
            Jason Pyke
            wrote on last edited by
            #5

            Do I have any other options?

            N J 2 Replies Last reply
            0
            • J Jason Pyke

              Do I have any other options?

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              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.

              J 1 Reply Last reply
              0
              • N Not Active

                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.

                J Offline
                J Offline
                Jason Pyke
                wrote on last edited by
                #7

                Thanks

                1 Reply Last reply
                0
                • J Jason Pyke

                  Do I have any other options?

                  J Offline
                  J Offline
                  John Kuhn
                  wrote on last edited by
                  #8

                  Yeah! What Mark said. :) 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.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups