Below is the code that is executed behind the scenes:
Dim test1 As HtmlGenericControl = CType(e.Item.FindControl("test1"), HtmlGenericControl)
Dim image As HtmlGenericControl = CType(e.Item.FindControl("imgFullImage"), HtmlGenericControl)
hypImageProduct.Attributes.Add("onMouseOver",
"ShowContent('" + test1.ClientID + "');document.getelementbyid('" + image.ClientID + "').src ='binary('" + Convert.ToBase64String(New DataClass().getProductStockPhoto(image.Attributes("alt"), 40, 40)) + "')';")
Next, here is the function used on the page for decoding binary data, but it seems like it's not being called:
function binary(d) {
var o = '';
for (var i=0; i<d.length; i=i+2) o+=String.fromCharCode(eval('0x'+(d.substring(i,i+2)).toString(16)));
return o;
}
I might be missing something obvious, but I expected it to work correctly.