D
David C
I have an asp:Image control that I want to have it's src url to change using
OnClientClick of a set of images in a DataList. All works fine, except the
single Image control is not displaying the image, just a red X. My separate
DataList records have this
OnClientClick="return showpic(this);"
The javascript function is as follows:
function showpic(obj)
{
var bigpic = document.getElementById("ImgLarge");
bigpic.className = 'Show';
bigpic.src = obj.src;
return false;
}
Any ideas what I am doing wrong? Thanks.
David
OnClientClick of a set of images in a DataList. All works fine, except the
single Image control is not displaying the image, just a red X. My separate
DataList records have this
OnClientClick="return showpic(this);"
The javascript function is as follows:
function showpic(obj)
{
var bigpic = document.getElementById("ImgLarge");
bigpic.className = 'Show';
bigpic.src = obj.src;
return false;
}
Any ideas what I am doing wrong? Thanks.
David