html - add alt text to img tag from c# code behind -
i'm trying add alt text <img> tag in c# behind, have no idea so.
here aspx code:
<img id="detailsimage" runat="server" alt="" class="detailsimage" /> in aspx.cs
detailsimage.src = dsarticledetails.tables[0].rows[0]["imageurl"].tostring(); any appreciated.
for purpose should use alt property.
detailsimage.alt = "my alternate text"
Comments
Post a Comment