How to replace src content in image control in jquery?
Posted on 2014-09-24
I have this jquery code below that works fine with the label web control. What it basically does is to find the webcontrol with the specific id and eval the data from xml table.
<asp:Label ID="lblFilename" class="filename" runat="server" Text='<%# Eval("filename")%>'></asp:Label>
Now what if i want to use the same application on a image control? The below doesn't work
<img class="imgPhoto" src='<%# Eval("filename")%>' />
Any help is greatly appreciated.