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 !




How to add Tooltip dynamiclly


Posted Date: 05 Jun 2008    Resource Type: Code Snippets    Category: ASP.NET WebForms

Posted By: R O B I N       Member Level: Gold
Rating:     Points: 10



The following code sample shows how to add Tooltip dynamiclly


using els; //use the namespace
<td align="center">
<asp:TextBox ID="txtYourControl" runat="server"></asp:TextBox>
<asp:Liternal ID="ltToopTip" runat="server"></asp:Literal>
</td>


On code behind....


protected void Page_Load(object sender, EventArgs e)
{
els.ToolTip tooltip = new els.ToolTip();
// ToolTip tooltip = new ToolTip("tooltip_files");
tooltip.Add(txtYourControl, ltToolTip, "You have enter your name here");
//If you have any other control
//tooltip.Add(txtPass, ltHtmlBased, "<font color=red><b>Password must be at least 8 symbols<b></font>");
tooltip.Build();
}



We can use it any control where ever u want to use




Responses

Author: Kapil Dhawan    16 Jun 2008Member Level: Gold   Points : 1
Hello,
Nice Try to Explain
Nice Piece of Code.
Keep Sharing your knowledge with us.

Regards,
Kapil


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Tooltip dynamiclly  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Show clock in ASP.NET ?
Previous Resource: How to retrieve the file from the sql table as a download link
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET WebForms


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween mask

Contact Us    Privacy Policy    Terms Of Use