Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have requirement to change image on particular img tag click event. I have generated multiple img. I want to set dynamic id's for them according to row value in DataTable. I tired.


XML
<img runat="server" ID='Level1<%# Eval("LinkID") %>' class="imgClass"
     alt="" src="../../../Styles/expand-large-silver-Shapes4FREE.png" height="11px"
     onclick="meClick(this.id)" />


but I am getting server tag not formed error.
Please Help
Thanks.

Code tags corrected
Posted
Updated 3-Mar-14 1:05am
v2

1 solution

Just create the image on server side code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900