How to implement mouseover effects in a <asp:image> web server control

Platform: ASP.NET| Category: Controls

<asp:Image id='Image1' runat='server' ImageUrl='b2346.jpg'></asp:Image>

VB.NET


Image1.Attributes.Add('onmouseover', 'this.src=’b2456.jpg’')

C#


Image1.Attributes.Add('onmouseover', 'this.src=’b2456.jpg’');

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.