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
Apply CSS Class to Image in asp:Hyperlink?
does not work because the image url is hard coded.
any ideas?
You should still be able to use that solution and just dynamically assign the image:
Then in code behind you can easily set: