How to set Title in a`img`?

Asked

Viewed 81 times

1

Is there any way to set the title (Text) of the component img in the code behind?

<tr>
   <td colspan="7">
      <img id="ProximoMes" src="../Images/Icons/dright.gif" />
    </td>
</tr>
  • you meant the attribute alt of <img> ?

  • Explain what you call title. What exactly do you want?

  • @bigown , would be the text that the image presents when the link (src) is not found, I took an application to do maintenance and came across this <img id="ProximoMes" title="Próximo Mês" runat="server" src="../Images/Icons/dright.gif" />, I’m taking everything that is TEXT to the code Behind for translation into other languages, but I searched the . NET’s IMG component does not have the title .

1 answer

2


  • That’s right vlw.

  • 1

    faltou to say that he needs to put the runat="server"

  • 1

    This in the comments .

Browser other questions tagged

You are not signed in. Login or sign up in order to post.