how can i assign an alt text in c#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how can i assign an alternate text to a button like we do to html pictures
with ALT?

i am working under c# environment.

thanx in advance
-Dr. S.
 
how can i assign an alternate text to a button like we do to html pictures
with ALT?

i am working under c# environment.

If you mean how to add a tooltip to an <asp:Button>, then you do this:

<asp:Button ID="MyButton" runat="server" Text="Button" ToolTip="Hello" />
 
Dr. Sevencan said:
how can i assign an alternate text to a button like we do to html pictures
with ALT?

i am working under c# environment.

thanx in advance
-Dr. S.

Buttons doesn't have an alternate text. You can use the title attribute
for a similar function.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top