ASP NET image onmouseover not working

tomer953

New Member
I have 2 images in my page. What i want to do is, when i move the mouse over 2nd image, the first image will change to other image, but something is not working.Code:\[code\]<asp:Image ID="imgProduct" runat="server" ImageUrl="~/Images/1.png" /><asp:Image ID="Image1" runat="server" ImageUrl="~/Images/2.png" onmouseover="imgProduct.src='http://stackoverflow.com/questions/12768064/Images/2.png';"/>\[/code\]If i change the ID in \[code\]onmouseover="imgProduct.src=http://stackoverflow.com/questions/12768064/\[/code\] to any image id in masterpage, that image is changing correctly, but its not working in the default page.Any suggestions?
 
Back
Top