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>
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>
2
This can be put on code Behind thus:
this.ProximoMes.Attributes.Add("title", "Alguma coisa aqui");
That’s right vlw.
faltou to say that he needs to put the runat="server"
This in the comments .
Browser other questions tagged c# asp.net webforms
You are not signed in. Login or sign up in order to post.
you meant the attribute
alt
of <img> ?– Leonardo Nascimento Cintra
Explain what you call title. What exactly do you want?
– Maniero
@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 .– Marco Souza