Click here to Skip to main content
14,387,626 members
Rate this:
Please Sign up or sign in to vote.
See more:
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.

<img runat="server" ID='Level1<%# Eval("LinkID") %>' class="imgClass"

     alt="" src="../../../Styles/expand-large-silver-Shapes4FREE.png" height="11px"

     onclick="meClick(" />

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

Code tags corrected
Updated 3-Mar-14 2:05am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Just create the image on server side code.

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100