in

ASP.NET Weblogs

Dave Burke - A freelance .NET Developer specializing in Online Communities

A freelance .NET Developer

Panel display using z-index over Select controls. Ehhh! You lose!

I wanted to simulate a popup window using a Panel as a sort of confirmation message box, but serverside and without javascript.  A Google post here by “crjunk” gave me the idea, and it worked GREAT!

...Oh, darn. Except for this little problem with Select boxes which don't use z-index.  So any panel I might wish to display is going to be eaten up with select boxes, like bricks in a wall.

Isn't that special! 

Here's a superb newsgroup thread on it, and the KB on z-index.

Yet another thing to have to suckup and swallow about web application development.  Oh, I understand why things work this way with select boxes and z-index and all that, I just wasn't prepared for it tonight...

 

Published Mar 27 2004, 12:21 AM by daveburke
Filed under:

Comments

 

Mike Powell said:

I agree this is annoying, but it's not too hard to write a bit of javascript to hide all the select boxes on your page when you want to show your panel...
March 27, 2004 3:00 AM
 

Dave Burke said:

Mike, You're right. And its what I did. With proper placement of the popup there was little evidence that some select box foolery was going on in the background. Thx!
March 27, 2004 8:12 AM
 

Mike Powell said:

Glad it worked out!
March 27, 2004 5:54 PM
 

Dave Burke said:

Mike, Thanks so much! Yeah, it's really pretty sweet simulating a popup with .NET, and with full access to all page methods, props, etc...unlike a Javascript approach.
March 27, 2004 5:55 PM
 

Jon said:

All you have to do is hide an iframe behind your popup menu and it knocks out the portion of the select box that is whacking up your menu. iframes take precedence over select/combo boxes and it also supports the z-index control. give it a shot, I know it works becuase I use them myself :-p
July 21, 2004 1:50 PM
 

Dave Burke said:

Jon, I hadn't thought of an iframe. Thanks! If I use this on the intranet where IE is my known client, I'll definitely rethink this. This particular app was a public site, however.
Regards!
July 21, 2004 2:00 PM

Leave a Comment

(required)  
(optional)
(required)  
Add