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

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -