Click here to Skip to main content
15,889,315 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI friends,

Can anyone guide me how to display data from database on a Tooltip of a button.

Awaiting for reply,

Kishor Kadam
Posted
Comments
johannesnestler 11-Jul-11 11:19am    
hmm - difficult to help. What specific problems do you have? Maybe you should show the important parts of your code? In the meantime my answer is: Get the data from the database. Set it as Tooltip text for your button. :-)

1 solution

You assign the ToolTIp the same way you would any other property

<asp:repeater runat="server" id="myRepeater" xmlns:asp="#unknown">
  <itemtemplate>
   <asp:button runat="server" text="<%"> ToolTip=<% Eval("btnTooltip") %> />
  </asp:button></itemtemplate>
</asp:repeater>

myRepeater.DataSource = myDataSource;
myRepeater.DataBind();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900