N
Nate Hekman
Lets say I have an asp:Image control, and I want to change its image in
client-side script. How can the script reference the <img> object? This
code doesn't work, because although asp:Image has the ID of _img, the
resulting <img> tag is given a different ID.
<asp:Image id="_img" ImageUrl="oldimage.jpb">
<script>
_img.src = "newimage.jpg";
</script>
Thanks for your help.
Nate
client-side script. How can the script reference the <img> object? This
code doesn't work, because although asp:Image has the ID of _img, the
resulting <img> tag is given a different ID.
<asp:Image id="_img" ImageUrl="oldimage.jpb">
<script>
_img.src = "newimage.jpg";
</script>
Thanks for your help.
Nate