473,385 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Covering up a dropdownlist

Hey all

I have this web application that is run in a hospital and after a specified
amount of time of inactivity it automatically logoffs the user off.
The docs don't like this, so i changed to using a label to cover the
screen's contents and popped up a little window for them to enter their
password to "resume" their session.

This works perfect they love it !!!

BUT ......

If there is a dropdownlist on the screen when the label covers it .. you can
still see the dropdownlist. Why ?
I did the bring to front on the label AND .. bring to back on the
dropdownlists. Nothing works. I replaced my listbox with a textbox same
thing.
Then I tried a panel. Still can see the stupid dropdown, what makes this
control so special that is displays no matter what is on top of it ??

Is there some way of using client side java or vbscript (this only runs in
IE) to check the main screen for dropdownlists and set their
style.visibility to hidden and then I can look though again when they resume
and set them back to visible?

Thanks for any assistance
Jon
Jul 19 '06 #1
3 1233
Unfortunately, this is a problem with Microsoft's rendering engine (Trident). It's annoying and very ugly, but for whatever reason, the drop-down list box always appears on top of everything. I have not found a way around this... if someone else has, I'd love to hear it too.

--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Jul 19 '06 #2
after the event fires that makes the label cover up the content could
you not just add this to your dropdownlists?

DropDownList1.Attributes.CssStyle.Add("display", "none")
this will render it invisible to the browser, once they are logged back
in you could just remove the attribute like so.

DropDownList1.Attributes.CssStyle.Remove("display" )

I just did a basic test and it seems to work for me.
Greg Collins [Microsoft MVP] wrote:
Unfortunately, this is a problem with Microsoft's rendering engine (Trident). It's annoying and very ugly, but for whatever reason, the drop-down list box always appears on top of everything. I have not found a way around this... if someone else has, I'd love to hear it too.

--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Jul 19 '06 #3
Jon,
This is a pretty common issue. There are several "fixes" the one that best
comes to mind is to sandwich a transparent IFRAME in over the dropdown.
Betrand Leroy has a blog post I remember seeing one solution on. Search
"Bertrand Leroy" "IFRAME".
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jon Delano" wrote:
Hey all

I have this web application that is run in a hospital and after a specified
amount of time of inactivity it automatically logoffs the user off.
The docs don't like this, so i changed to using a label to cover the
screen's contents and popped up a little window for them to enter their
password to "resume" their session.

This works perfect they love it !!!

BUT ......

If there is a dropdownlist on the screen when the label covers it .. you can
still see the dropdownlist. Why ?
I did the bring to front on the label AND .. bring to back on the
dropdownlists. Nothing works. I replaced my listbox with a textbox same
thing.
Then I tried a panel. Still can see the stupid dropdown, what makes this
control so special that is displays no matter what is on top of it ??

Is there some way of using client side java or vbscript (this only runs in
IE) to check the main screen for dropdownlists and set their
style.visibility to hidden and then I can look though again when they resume
and set them back to visible?

Thanks for any assistance
Jon
Jul 19 '06 #4

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

Similar topics

12
by: Stanley J Mroczek | last post by:
How do you load a dropdownlist when edit is clicked in a datagrid ? <Columns> <asp:BoundColumn DataField="OptionDescription" ItemStyle-Wrap="True" HeaderText="Option...
12
by: Stanley J Mroczek | last post by:
How do you load a dropdownlist when edit is clicked in a datagrid ? <Columns> <asp:BoundColumn DataField="OptionDescription" ItemStyle-Wrap="True" HeaderText="Option...
0
by: asmx126453 | last post by:
Hey mensen I am having some big troubles here i tryd solving it myself with internet for 2 days but i kind fix it. Its about this i have a DotNet project that alrydi is online and working for...
3
by: turgon | last post by:
At the moment I making an ajax based file manager system. Im approched by a tricky problem. As in windows explorer etc I want users to be able to select any free space, click down, and drag a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.