Hi,
I have a grid with a GridImageColumn, now I would like to make a change. It is sometimes possible that the image the column wants to show does not exist, and I cannot check this server side before or during databind.
I found some javascript code which allows to set a new "default" image src in case the url it is pointing to does not exist, but the problem is that I do not know how to access the html <img /> element inside the GridImageColumn.
My question: is there a way to set the javascript OnError function if the <img /> element inside a GridImageColumn row either server side or client side? So I would like to be able to edit the attributes of that <img /> element which is about to be rendered... How to do this?
Kind Regards,
Kristof
I have a grid with a GridImageColumn, now I would like to make a change. It is sometimes possible that the image the column wants to show does not exist, and I cannot check this server side before or during databind.
I found some javascript code which allows to set a new "default" image src in case the url it is pointing to does not exist, but the problem is that I do not know how to access the html <img /> element inside the GridImageColumn.
My question: is there a way to set the javascript OnError function if the <img /> element inside a GridImageColumn row either server side or client side? So I would like to be able to edit the attributes of that <img /> element which is about to be rendered... How to do this?
Kind Regards,
Kristof