Adding a class attribute on the Image tag generated by the hyperlink control

Posted by iHeartDucks on Stack Overflow See other posts from Stack Overflow or by iHeartDucks
Published on 2010-06-14T19:22:24Z Indexed on 2010/06/14 21:02 UTC
Read the original article Hit count: 265

Filed under:

I have a hyper link control and I set the NavigateURL and the ImageURL property at runtime. I also need to set the class of the image tag that it generates but I cannot figure out how I can do that. The solution mentioned here

http://stackoverflow.com/questions/1428879/apply-css-class-to-image-in-asphyperlink

does not work because the image url is hard coded.

any ideas?

© Stack Overflow or respective owner

Related posts about ASP.NET