0

I want to add a tooltip on a button in asp.net web form.And i want to add it programaticaly.I want to set the tooltip string in the code.Not the design.How can i do this?

1
  • I tried it with windows form and i did it.But i was unable to do it in a web form. Commented Feb 17, 2015 at 6:02

2 Answers 2

1

You can also try this:

 btntooltip.ToolTip = "Your String/ToolTip";

Here btntooltip is the ID of Button.

Sign up to request clarification or add additional context in comments.

1 Comment

Can i do without clicking the button? I want to get the string when mouse over the button
1

You can do like this

mybtn.Attributes.Add("ToolTip","myToolTip");

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.