Show Drop Down on hover on label

B_Pati
B_Pati used Ask the Experts™
on
Hi  Experts.
                  i have a label showing employee name . when my mouse hovers on the label i need
                 to show a drop down with all the employee names. please help me with this functionality.
                i don't want to use ajax control toolkit. it has a control with such a functionality
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
In aspx file, after the label control, add a <div> tag like:

<div style="position:relative;display:none;" id="divEmp">
              write your drop down code here
<img src="close.jpg" onclick="document.getElementById("divEmp").style.display='none'; " />
</div>

In your label, write code to display this div:
<asp:Label onmouseover="document.getElementById("divEmp").style.display='block'; "  .......></asp:Label>

Author

Commented:
Thanks devlab2012 ifor  suggesting me of how to implement it.

Author

Commented:
I had to implement further based on the answer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial