Hi,
I'm currently trying to get a img tag to show the image by settings its src property.
I was using an asp:ImageButton as:
asp:ImageButton ID="image" runat="server" ImageUrl='<%# "Images/" + Eval("CarMakeId") + ".jpg" %>' AlternateText="No image found" />
This showed the image fine but I wanted to do some javascript for clicking the imagebutton. I understand you can't set the 'Click' property to be javascript but only code behind so I changed to a standard html img:
img alt="No image found" src='<%# "Images/" + Eval("CarMakeId") + ".jpg" %>' onclick="openWindow('Test Message'); return false;" />
Now I can use the javascript to open the window but the image isn't being found for the img.
Could someone please tell me what I'm doing wrong causing the image not to display
Thanks!
Mr Cricket