C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




tooltip for dropdownlist control


Posted Date: 09 May 2008      Total Responses: 3

Posted By: abc123       Member Level: Bronze     Points: 1


Hi

I have a situation where i should have a tooltip for each and every dropdownlist item and the desciption is from one field in database and the dropdown list is also populated from the field in database. Please help me asap. all help is great help....




Responses

Author: Dharmaraj    09 May 2008Member Level: DiamondRating:     Points: 2
Hi,
www.dotnet247.com/247reference/msgs/32/163989.aspx


Author: Nithya    10 May 2008Member Level: GoldRating:     Points: 2
try this: just adjust the position for displaying tooltip k.

javascript:

function ToolTipEnable(tip)
{
var theTip = document.getElementById("ToolTip");
theTip.style.top = window.event.clientY + 10;theTip.style.left = window.event.clientX;
theTip.innerText = tip.options[tip.selectedIndex].text;
theTip.style.visibility = "visible";
}

function ToolTipDisable()
{
document.getElementById("ToolTip").style.visibility = "hidden";
}

<asp:DropDownList ID="CmpnyDropDown" runat="server" DataValueField="Company_Name" onMouseOver="ToolTipEnable(this)" onMouseOut="ToolTipDisable()">
</asp:DropDownList>


<div id="ToolTip"
style="position:absolute;visibility:hidden;background:lightyellow; border:1px solid gray;padding:2px;font-size:8pt;font-family:Verdana;"
onmouseout="ToolTipDisable()">
</div>


ALL THE BEST


Author: karthekeyan    11 May 2008Member Level: DiamondRating:     Points: 2
www.eggheadcafe.com/community/aspnet/17/10029596/how-to-add-tooltip-in-dro.aspx


Post Reply
You must Sign In to post a response.
Next : LISTBOX
Previous : Plz Help.........After Logging Off Problem
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use